procmail
[Top] [All Lists]

Re: Combining Recipes into One

1997-04-22 19:23:00
On Tue, 22 Apr 1997, Paul O Bartlett wrote:
Because all these recipes are so simple and have the same action line,
I suppose it would be possible to combine them into a single recipe
with all the conditions, as they now are, being OR'ed.  Unfortunately,
so far I have not found the magic touch for doing it.

        :0:
        * (!^TOpobart(_at_)access[1-5]*\(_dot_)digex\(_dot_)net|\
        ^Subject:.*(\$|free|cash|money)|\
        ^From:.*(@cyber|@interramp\.com|@hotmail\.com))
        IN.xdiscard

I wasn't sure if the ! could be ORed in a condition, so it tried it in
a test recipe and it worked. I need to test this further, but from a
quick test it seems that matching any of the three ORed expressions
will trigger the action. I add ^ in front of the other two expressions
since it seemed like a good idea, and they were missing in the
original recipes. 

David

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