procmail
[Top] [All Lists]

Re: Multi-Lines:

2003-03-31 06:52:34
* Mahmood Iqbal Hashmi <mahmoodi(_at_)webnet(_dot_)com(_dot_)pk> [03-31-03 
04:45]:
I can block multiple file attatahments in the single line commads 
like:

:0 B
* (filename|name)=.*\.(bat|lnk|scr|cpl|pif|cmd|com|dll|vbs)
$BADMAILS1

Let me advice how can I block multiple domains in the single line or 
via file. The following is not working. 

:0
* ^From:.*\<transmitr.net\>
* ^From:.*\<iExpect.com\>
* ^From:.*\<zoanmail.com\>
* ^From:.*\<responsesystems.org\>
* ^From:.*\<liwxtry.com\>
* ^TOkousar
$BADMAILS1

You need a ..line..continuation..character.. and ..only.. one rule per
recipie, also '\>' and '|<' are special cases, ie:

:0  
* ^From:.*transmitr.net|\
  ^From:.*iExpect.com|\
  ^From:.*zoanmail.com|\
  ^From:.*responsesystems.org|\
  ^From:.*liwxtry.com|\
  ^TOkousar  
$BADMAILS1  

-- 
Patrick Shanahan                  Please avoid TOFU and trim >quotes<
http://wahoo.no-ip.org                  Registered Linux User #207535
icq#173753138                                 @ http://counter.li.org
Linux, a continuous *learning* experience

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