procmail
[Top] [All Lists]

To filter recepie: regex advice needed

2002-09-05 20:46:26
#Genaric recipie that will match and send ALL email
# to bomer, kelly or zorn at rkl.com or tedcam.com
#and sent it to /home/ted/junk-test

:0: * ^To:(.*\.)(bomer|kelly|zorn)@(rkl|tedcam)\.com.
   {
    :0
       /home/ted/junk-test
   }
# end of junk-test

The "\." preceding the (bomer|kelly|zorn), is there for any leading "<"; do I have to include it?
The trailing "." is there for a ">" if present; Do I need to have it?
Do you see a better way wo do this? I have many names to add, so this is 'generic'.
I plan to use a similar recipie for filteing using other headers as well.

Thanks.

-ted

_______________________________________________
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>
  • To filter recepie: regex advice needed, ted townsend <=