Maildir -> mbox conversion

Maildir and mbox are two formats for storing e-mails locally. Both have strengths and disadvantages. If you want to convert all your mail from Maildir format to old, good mbox just issue the following script:

for a in .??*; do
    echo $a
    for msg in $a/new/* $a/cur/*; do
        formail <$msg >>$mbs 


You may ask: why revert to older, less flexible format? The answer is: speed (mbox is faster for many small messages).

This entry was posted in en and tagged , . Bookmark the permalink.