Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Incompatible with Mail in Tiger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Incompatible with Mail in Tiger
Authored by: wnorris on Dec 27, '05 11:03:25PM
correct, but a tiger compatible version of the script is even simpler -- you simply need to pipe the maildir messages through /usr/bin/formail. so the script becomes


find . -name $mdirname | while read from; do
    nm=`dirname $from | sed 's/[^a-zA-Z0-9]/-/g; s/^-*//; s/--*/-/' `
    echo "Converting $from into $nm"

    /bin/ls -1 "$from" | while read message; do 
        cat $from/$message | /usr/bin/formail
    done > $nm.mbox

[ Reply to This | # ]