The NZ Linux Resource

[AuckLUG] Procmail

Michal Ludvig michal at logix.cz
Mon Jun 19 10:43:12 NZST 2006


Jamie Dobbs wrote:
> Due to some "layer 8" issues (ie. me) my Procmail rules did not work for
> a 24 hour period and I have almost 700 emails that have not run through
> my filters.
> The emails are sitting in a Maildir on the machine that should have
> processed them. Is there any way to run procmail over all of the
> messages in the Maildir so I don't have to manually forward each message
> back to myself so that porcmail will process them when the come back in.

What's the format of Maildir messages? Isn't it a message per file?
Then a simple
$ for MSG in <maildir/path>/*; do <pass-it-to-procmail> $MSG; done
should do the job.

Michal



More information about the AuckLUG mailing list If you have any questions or comments about this page, email the Webmaster
Design Copyright © 1998-2005 Linux.net.nz