procmail
[Top] [All Lists]

Re: Rerunning recipes

2009-05-05 10:41:08
On Tue, May 5, 2009 at 3:38 PM, Glenn Sieb <ges+lists(_at_)wingfoot(_dot_)org> 
wrote:
Paulo J. Matos said the following on 5/5/09 4:06 AM:
Now, I would like to add some more rules to organise several mailing
lists in the incoming emails however, I would also that those rules
apply to the current INBOX, so that the mails there matching the rules
go to the respective directory. How can I do that [not the part of
adding a new rule but making sure the new rules act on emails already
in the INBOX]?

Cheers,



When I do this, I create a folder (like .temp), and move my Inbox
contents there. Then I cd into the folder for .temp, and run:

find ./cur -type f -name "*COMMON*"| while read f; do procmail <$f;done
find ./new -type f -name "*COMMON*"| while read f; do procmail <$f;done

(You'll want to do an ls in the cur/new folder to see what the common
part of your filenames are, and replace "COMMON" with it. :) )


Thanks! I shall try that out!

Best,
--Glenn
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail




-- 
Paulo Jorge Matos - pocmatos at gmail.com
Webpage: http://www.personal.soton.ac.uk/pocm

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>