summaryrefslogtreecommitdiff
path: root/localmb2md
blob: c2739cf08987cd3eb992e301d4fcda33aab15b06 (plain)
  1. #!/bin/sh
  2. set -e
  3. test -f /usr/bin/mb2md
  4. test ! -f ~/.procmailrc
  5. echo 'DEFAULT=$HOME/Maildir/' > ~/.procmailrc
  6. #FIXME: check spool file lock before reading the spool file
  7. if [ -f "/var/mail/$user" ]; then
  8. mb2md -s mail -m
  9. echo '' > "/var/mail/$user"
  10. fi
  11. mb2md -s mail
  12. mv ~/.mailboxlist ~/Maildir/.subscriptions