At 15:11 2003-12-15 -0500, JoeHill wrote:
joesomethingorother(_at_)sympatico(_dot_)ca
So I thought this recipe would catch it:
^To:*joe([a-g]|[j-z])*
which, with my limited understanding of RegExp says:
anything beginning with "joe" but continuing with either letters a-g *or* j-z.
Not with the * (zero or more) wildcard count it won't. Further, the :* at
the beginning means zero or more colons, and doesn't provide you with any
support for the whitespace you probably meant to catch.
You want something more like:
* ^To:.*\<joe[a-gj-z][^ ]*(_at_)sympatico\(_dot_)ca
Note that the two character ranges can be put into a single character class
bracket, eliminating the need for the parenthesis and or construct, and
since just ONE of these will cause the address to be identified as not
yours. I extend with with a not space out to the @ and your domain, and
allow for whatever before the name and a wordbreak there as well.
If the ONLY address you have is joehill, then you missed the 'i' which
should be in the expression, and also, you could replace [a-gj-z] with
[^hi] instead.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail