Why and how to migrate mailboxes to IMAP and Maildir - Zd Net Asia.com
2012-05-13
Line 4 finds all the files in the directory passed as first argument ($1), runs the "file" command on them and filters (egrep) only those whose description shows they are mailboxes. Lines 9 to 16 save to /tmp/MUTTCONF the the IMAP password, user name and ...