[lug] Maildir filtering after delivery

David L. Anselmi anselmi at anselmi.us
Sun Nov 22 16:59:52 MST 2009


Ben Luey wrote:
> I want to filter a bunch of email that is in a MAILDIR format (a la
> procmail), but I want to filter it from MAILDIR, not as it is coming in.
> Any recommendations on how to do this? I'd like a cron job that runs
> every week to move some emails to different directories.  The emails
> include send items, so I can't just use procmail on incoming emails.

for msg in $MAILDIR/* ; do procmail < $msg ; done

Dave



More information about the LUG mailing list