The NZ Linux Resource

[AuckLUG] Procmail

Garrett Stoupe garretts at te.co.nz
Mon Jun 19 10:55:51 NZST 2006


Maildir is one message per file

Garrett Stoupe

 

-----Original Message-----
From: aucklug-bounces at linux.net.nz [mailto:aucklug-bounces at linux.net.nz] On
Behalf Of Michal Ludvig
Sent: Monday, 19 June 2006 10:43 a.m.
To: Auckland Linux User Group mailing list
Subject: Re: [AuckLUG] Procmail

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

_______________________________________________
AuckLUG mailing list
AuckLUG at linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/aucklug





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