2718.us blog » maildir2mbox http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 Converting from Maildir to mbox Files http://2718.us/blog/2009/09/28/converting-from-maildir-to-mbox-files/ http://2718.us/blog/2009/09/28/converting-from-maildir-to-mbox-files/#comments Tue, 29 Sep 2009 02:20:40 +0000 2718.us http://2718.us/blog/?p=186 A slight misconfiguration had SpamAssassin dropping spam into ~/Maildir/.spam/ while Dovecot was looking for mbox files in ~/mail/.  From my initial bit of Googling, I was expecting to have to download some program to do the heavy lifting.  Luckily, I came across a very simple blog post with a very simple answer that worked like a charm.

Need to generate an mbox out of a Maildir mailbox? Formail helps:

cd $MAILDIR/cur
for i in * ; do cat $i | formail -c >> $MBOXFILE ; done
]]>
http://2718.us/blog/2009/09/28/converting-from-maildir-to-mbox-files/feed/ 0