procmail
[Top] [All Lists]

Re: [procmail] Newbie needs help

2003-02-07 01:33:29
Ruud H.G. van Tol wrote:

There was again an error-by-copy/paste: 
   * ! ^From:[  ]+(_dot_)*(_at_)somemailinglist\(_dot_)com|\
should not have the |\ at the end.

Update-2:

    ADR_BEFORE="[^-a-z0-9._+$~&]"
    ADR_AFTER="([^-a-z0-9._]|$)"
    WS="[  ]+"   #contains a space and a tab 
 
    :0:
    *$! ^From:${WS}.*${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:${WS}(_dot_)*(_at_)somemailinglist\(_dot_)com
    *$! ^Sender:${WS}procmail-admin@
    *$! ^Subject:${WS}.*\[CyberDojo]
    *$! ^TO_(myaddress1|myaddress2)@domain1\.tld${ADR_AFTER}
    Spam

A scoring recipe is supposed to be more efficient, since that bails 
out at the first matching condition (put your verbosest friends on 
top).

-- 
Ruud


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