procmail
[Top] [All Lists]

Re: Filter Q, Multiple Conditions

2002-09-27 08:06:17
On Fri, 27 Sep 2002, Andy Ciordia wrote:

##
# Procmail List
:0 h
* ^To:(_dot_)*procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
* ^Cc:(_dot_)*procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
| /home/vmail/bin/move-message.sh ${SHARED_DEST}.Lists.Procmail


Here's an example of my filter, I'd like the To/CC to be an OR not an AND
and I'm not sure how to make it treat it as such besides making multiple
rules, but having multiple rules setup for one list just seemed like the
wrong way to handle it and to just have it * .*procmail seems to broad.

Is there a way you use OR inbetween conditions?

        Yes, use score:

*  1^0  ^To:(_dot_)*procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
*  1^0  ^Cc:(_dot_)*procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE

        If you run in verbose mode you will be able to understand the
        mechanism from the log file - it is very nice.

Bye,
 Udi

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