procmail
[Top] [All Lists]

Re: New to Procmail

2002-08-23 17:16:27
The headers look like this:
[...]

I am trying to filter all mail that has 
samson_mother4727(_at_)yahoo(_dot_)com in
the From: header to /var/log/procmail.log.samson

My recipie looks like this
[...]

:0B:
* ? /usr/local/bin/formail -x"From" -x"From:" -x"Sender:" -x"Reply-To:" 
-x"Return-Path:" | /bin/egrep -is samson_mother2747(_at_)yahoo(_dot_)com
/var/log/samson

You want to check the headers, but you're using the 'B' flag to check
the body.  Unless I misunderstand what you're trying to do, you just
want something like:

  :0:
  * 
^(From|(Sender|Reply-To|Return-Path):).*\<samson_mother2747(_at_)yahoo\(_dot_)com\>
  /var/log/samson

or is it not that simple?

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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