procmail
[Top] [All Lists]

Re: Welcome to the "procmail" mailing list

2005-05-17 18:37:15

On 17 May 2005, at 16:29 , ryan S. wrote:

I have the following .procmailrc:


MAILDIR=$HOME/
PATH=/usr/bin:/usr/local/bin:/usr/local/bin
LOGFILE=$HOME/.procmaillog
VERBOSE=no

:0
* ^Subject:.*announce
| formail -s cgi-bin/parse.pl announce;


It works for all mail - how can I get it to work on only mail sent to
user2(_at_)domain(_dot_)com ?


:0
* ^TO_user2(_at_)domain\(_dot_)com
* ^Subject:.*announce
| formail -s cgi-bin/parse.pl announce;


Keep in mind the first rule of procmail though: procmail is not a MTA.

--
"Whose motorcycle is this?" "It's a chopper, baby."
"Whose chopper is this?" "It's Zed's."
"Who's Zed?" "Zed's dead, baby. Zed's dead."


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