procmail
[Top] [All Lists]

Re: ^TO_.* actually makes sense

2002-12-07 07:02:15
mindfuq(_at_)comcast(_dot_)net skribis:

I read somewhere that the ".*" is not necessary after the TO_ token.

Where is somewehere? 


From man procmailrc:
`^TO_' [...] should catch all destination specifications
containing a specific address.

`^TO' [...] should catch all destination specifications 
containing a specific word.



Not so, contrary to popular belief.  

Of the 95% people that rather read religious stuff than man-pages?


For example,
^TO_mindfuq(_at_)spamgourmet(_dot_)com fails to match the following cases:

A part of an address is not necesssarily an address.




myrebate(_dot_)1(_dot_)mindfuq(_at_)spamgourmet(_dot_)com
techhelp(_dot_)8(_dot_)mindfuq(_at_)spamgourmet(_dot_)com
contest(_dot_)2(_dot_)mindfuq(_at_)spamgourmet(_dot_)com

This is because TO_ specifically excludes punctuation that appears
prior to the username.. So I'm reverting from "^TO_" to "^TO_.*".


Or just use something like:
  * ^TO_[a-z]+\(_dot_)[0-9]\(_dot_)mindfuq(_at_)spamgourmet\(_dot_)com

-- 
Affijn, Ruud


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

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