…assuming you”ve installed formail (from the procmail package?), it’s easy as:

#!/bin/bash
for file in `find /path/to/your/Maildir/cur -type f`
do
 cat $file | formail -A Date: >> /tmp/mbox
done

Benjamin Wiedmann

Benjamin Wiedmann is an IT Professional, Software Developer, Photograph and Musician. Read more...

More Posts - Website

Follow Me:
TwitterLinkedInGoogle Plus


Benjamin Wiedmann

Benjamin Wiedmann is an IT Professional, Software Developer, Photograph and Musician. Read more...

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.