procmail
[Top] [All Lists]

Re: Grouping filter conditions

1996-10-26 02:59:52
ariel(_at_)best(_dot_)com (Catherine Hampton) writes:
:0
* (From:|Reply-To:|Message-ID:|Path:)|\
     (.*moneyworld\.com|\
      .*cyberpromo\.com)

Zach Babayco has already pointed the lack of a anchor on the beginning
of the line.  The more serious error is the '|' at the end of the first
line.  As it stands, that condition will match any message which has
either a From:, Reply-To:, etc header, *or* that has one of those two
domains in *any* of the headers.  As written there's no tieing together
of those two sub-conditions, i.e., no requirement that moneyworld occur
in one of the listed headers instead of the Subject: line, and no
requirement that the listed headers contain anything specific for it to
match.  Since *every* message has a Message-ID: line, the condition
will always match.  Removing the spurious '|' and adding a '^' anchor
should fix things up, as shown in Zach's version.

Philip Guenther

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