procmail
[Top] [All Lists]

Re: question/query from procmail newbie

2001-09-04 15:37:22
On Tue, Sep 04, 2001 at 01:01:27PM -0500, Michael Geier, CDM Systems Admin 
wrote:
:0i:
* ^Subject:.*expression1.*
* ^Subject:.*expression2.*
| formail -rzxTo: >> $HOME/storage

If you're trying to grab the From: based on either of these expressions, you
need an OR. This is an AND (the message has to match both expressions.

:0i:
* ^Subject:.*(expression1|expression2)
| formail -rzxTo: >> $HOME/storage

Note you don't need the .* at the end of the expressions, or the match clause.
Procmail assumes it.

-- 
Andrew Edelstein        -       andrew(_at_)pure-chaos(_dot_)com
http://andrew.pure-chaos.com
_______________________________________________
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>