procmail
[Top] [All Lists]

Re: when outlook is miss-configured ... more work for us

2006-04-23 01:51:35
Matee Moshkovits wrote:

I need to find a way with procmail to copy any incoming emial into 2 
folder (1 the inbox, the other a backup inbox in the users $HOME/mail 
folder)
 


The c (copy) flag indicates that procmail processing does not stop at 
the first delivering recipe, so to send email to two folders you would use

:0 c
/your/mailbox/folder1

:0
/your/mailbox/folder2

If you expect the folder list to change occasionally, the following 
slightly less efficient ruleset might be clearer and less error prone:

:0 c
/your/mailbox/folder1

:0 c
/your/mailbox/folder2

:0
/dev/null

You can also set LASTFOLDER to influence what gets logged, for example

LASTFOLDER=/your/mailbox/folder1-and-folder2

-- 
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/


____________________________________________________________
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>