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_.