procmail
[Top] [All Lists]

Re: Newbie needs help

2003-02-06 19:23:29
On Fri, 7 Feb 2003, Ruud H.G. van Tol wrote:

   ADR_BEFORE="[^-a-z0-9._+$~&]"
   ADR_AFTER="([^-a-z0-9._]|$)"

   :0:
   *$! ^From:[  ]+.*${ADR_BEFORE}(\
         (email1|email2|friend)@hotmail\.com|\
         (email3|somebody)@yahoo\.com|\
         friend(_at_)aol\(_dot_)com|\
         (brother(_at_)serv|sister(_at_)qwest)\.net|\
       @@)${ADR_AFTER}
   * ! ^From:[  ]+(_dot_)*(_at_)somemailinglist\(_dot_)com|\
   * ! ^Sender:[  ]+procmail-admin@
   * ! ^Subject:[  ]+.*\[CyberDojo]
   *$! ^TO_(myaddress1|myaddress2)@domain1\.tld${ADR_AFTER}
   Spam

Added the ampersand to the name-part-charset (see ADR_BEFORE).
Beware, that ^TO_ condition will let Bcc's go to Spam.

Wow!  Trying to following what everyone has said has been really 
interesting.  It is going to take me a bit to assimilate everything.

Two clarifications, please.
1)  Why is there a "[  ]" after the colons?  I didn't see them in previous 
posts and am curious what they do.
2)  Why is the dollar sign inserted in two of the lines.  Is it to notify 
procmail that there is a user-defined "variable" in the line?

Thanks everyone!


-- 
Phuc Tram
Master Pivot - Wielder of the Coherent Light Bokken
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
pivot(_at_)CrystalTokyo(_dot_)com




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