procmail
[Top] [All Lists]

Re: Format Clarification

2001-03-08 15:52:49
Eric Hilding asked,

| Did I get it right?
| 
| Thank you.
| 
| :0 B
| * H ?? !^TO(okname1|okname2|okname3)@(domain1|domain2|domain3)\.com
| * ()\<(free|http://|guaranteed|no cost|apply now|remove from mailing|\)
|        amazing|send no money)\>
| /dev/null

There's a strange trailing escaped right parenthesis on the third line, which
will (1) prevent the backslash before it from making the fourth line into a
continuation, so procmail will try to use the fourth line as the action and
skip the fifth and (2) leave the unescaped left parenthesis unbalanced.

Surely, Rick, you meant this:

 :0 B
 * H ?? !^TO(okname1|okname2|okname3)@(domain1|domain2|domain3)\.com
 * ()\<(free|http://|guaranteed|no cost|apply now|remove from mailing|\
        amazing|send no money)\>
 /dev/null

Also, isn't is possible that one of the legitimate recipients will join a
mailing list, whose distributions may contain the words "free" or "amazing"
or even "guaranteed" or a URL starting with "http://";?  If so, I hope that
recipes to file mail from those lists will precede this one.

Beyond that, I echo Philip's comment about ^TO_ for ^TO.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail