procmail
[Top] [All Lists]

Re: Filter Question

2002-01-27 01:43:31
in message <20020127082105(_dot_)GB50688(_at_)moo(_dot_)holy(_dot_)cow>, 
wrote parv thusly...

in message <20020126230050(_dot_)B8518(_at_)eric(_dot_)unixtechs(_dot_)org>, 
wrote Tim Holmes thusly...

I have other email address that are first name, last name, and so on.
Would something like this be adequate?

*(tim(h|othy(.holmes)|.holmes))?|tdh)@(domain1|domain2).com

Would that line pull out emails sent to 

tdh@
tim@
timh@
timh.holmes@
timothy@
timothy.holmes@
...
given above names and your regex[0], how about[1]...

(tdh|tim(h|othy)?(\.holmes)?)@(domain[12])\.com
...
[0]  tim, your regex produces an id not listed in your examples:
"tim.holmes@" ...  otherwise, based solely on your examples, regex
would be...

(tdh|timh?|tim(h|othy)\.holmes)@(domain[12])\.com
...

come to think of it, i would change my above 2 regex's to...

(t(dh|im(h|othy)?(\.holmes)?))@(domain[12])\.com

(t(dh|imh?|im(h|othy)\.holmes))@(domain[12])\.com


...and these are simultaneously nice and ugly.

-- 


_______________________________________________
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>