procmail
[Top] [All Lists]

Re: my recipe doesn't work.

1998-03-06 13:27:44
Rick Troxel suggested to Steve Woodard,

| Perhaps this will do?
| 
| :0
| * ^From.*(\<sex\>|XXX)
| * ^TOsex\>|XXX
| /dev/null

The second condition should be

 * ^TO(sex\>|XXX)
        
to check for sex\> or XXX in an addressee header; without the parentheses
it will check for sex\> in an addressee header or XXX anywhere in the head.

However, I get the feeling that Steve wanted to OR those two conditions, not
to AND them; so maybe we should have this:

  :0
  * (^From[ :](.*\.>)?|^TO)(sex\>|XXX)
  /dev/null

I'd recommend ^TO even for versions of procmail that grok ^TO_.

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