procmail
[Top] [All Lists]

Re: Filter Question

2002-01-26 21:04:00
Thanks for the help Paul.  That seems to work.  But now I have to go fix my
other filters that I had like the one below.  So I need a little more
information about what you listed below.

I have other email address that are first name, last name, and so on.  So
how do I add those in there?  Would something like this be adequate?

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

Would that line pull out emails sent to 

timh@
tim@
tdh@
timh.holmes@
timothy.holmes@
timothy@

Just want to make sure I completely understand this so I can then complete
these filters.  Thanks a lot for the help.
tdh

--
  --------------------------------------------------------------------
  T. Holmes  |  UNIXTECHS.org  |  tim(_at_)unixtechs(_dot_)org  |  UIN:  
17021091
  --------------------------------------------------------------------
 | 
 | This basically matches wither timh or tdh at any of the domains.
 | 
 | What you probably want is:
 | 
 | * 
^From:.*(timh?|tdh)@(domain1.com|domain2.com|domain1.net|domain1.org|domain2.org)
 | 
 | which basically says that the 'h' is optional.  Question marks indicate
 | that the preceding "atom" may be repeated 0 or 1 times.  An atom is
 | either a character, or a block of regexp enclosed in round brackets.
 | So "timh?" is the same as "tim(h)?", but "tim(h)" equals "timh".
 | 
 | -- 
 |   Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
 |   Operations / Development / Abuse / Whatever       vox: +1 416 598-0000
 |   it.canada                                            http://www.it.ca/
 | 
 | _______________________________________________
 | procmail mailing list
 | procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
 | http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
  ----------------------------- Uptime -------------------------------
  10:53PM  up 18 days, 22:42, 5 users, load averages: 0.01, 0.02, 0.00
  --------------------------------------------------------------------
_______________________________________________
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>