procmail
[Top] [All Lists]

Re: Two Questions: ORing rules

1998-03-10 11:34:24
|Tue 98-03-10 John M Vinopal <banshee(_at_)abattoir(_dot_)com> list.procmail
| 1) Is there a flag which causes rulesets to be ORed rather than ANDed?
| I'd like to keep my rules cleaner by avoiding |\ continuations.

Phil and Chris already peeked your post...I just want to add that use of
variables to keep condition line clear is one good technique:

    charset = "a-z0-9_" 
    re1     = "this-regexp(or|maybe|perhaps)followed"
    dot2    = "$charser.$charset"
    address = "${dot2}(_at_)${dot2}(_dot_)[a-z][a-z][a-z]?"    # 
Mr(_dot_)Foo(_at_)some(_dot_)site(_dot_)com

    :0
    *$ $re1|$address
    | gotcha

But in most cases I continue my recipes with "|\" too...

jari

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