procmail
[Top] [All Lists]

Re: Combining Recipes into One

1997-04-23 14:57:00
Guy Geens suggested to Paul Bartlett,

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

No, that won't do what Paul wants, because it gives any mail addressed to
him a bypass around the Subject: and From: tests in the second condition.
In fact, because the second condition is unweighted, it won't make any
difference at all: if the item was not visibly addressed to Paul, the score
will be zero whether the second condition passes or not.  Result: nothing
will get into $MAILDIR/IN.xdiscard.

Adding a small positive score to the second condition will result in ORing
the two parts of the second condition but then ANDing the result with 
!^TOpobart, and Paul wants all three ORed.

The best answer I can give is one that Philip Guenther has already posted:

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

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