I run procmail to filter my mail into folders -- Linuxchix mail into one folder, GIMP mailing lists into another, and so forth -- and it seemed like it ought to be possible for fetchmail to call procmail directly, without going through postfix.
I found several suggestions on the web -- for instance,
-- but they didn't work for me. fetchmail downloaded each message, passed
it to procmail, and procmail appended it to the relevant mailbox
without the appropriate
"From " header that mail programs
need to tell when each new message starts.
Finally, on a tip from bma on #linuxchix and after a little experimentation, I added this line to ~/.fetchmailrc:
mda /usr/bin/procmail -f %F -m /home/username/.procmailrcWorks great! And it's a lot faster than going through postfix.
[ 14:07 Dec 15, 2009 More tech/email | permalink to this entry | comments ]