procmail
[Top] [All Lists]

Re: How to do OR - Conditions in recipes ?

1998-04-22 08:41:01
Thomas Witt asked,

| How do I set up a OR-Condition, f.E.
| put all Mail into a special folder which contains
| "surfing" in the subject or is from
| "surfing(_at_)mailinglist(_dot_)org" f.e. ...?

:0:
* ^Subject:.*surfing|^From:(.*\>?surfing(_at_)mailinglist\(_dot_)org
surfing

Other kinds of ORing are more complicated, as we've discussed in the past
on this list, but when you are checking the same search area for a match to
either of two patterns (or to any of three or more patterns), just alternate
them with unescaped pipe symbols.

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