procmail
[Top] [All Lists]

Re: Recipe Correctness ?

2003-09-21 18:39:25

#Catch potential spam   
:0
*
!^TO_(mpierce|mrpierce|marvinrpierce)@(optusnet\.com\.au|teebookglobal\.com|303S
port.com|yahoo.com.au)

  #Small matter but it seems you've overlooked escaping the periods in 
  #your last two domains there, which allows '.' to act as a 
  #metacharacter, i.e matches yahoo[any character]com[anycharacter]au  
  {
  :0 fwh
  * ^Content-Length:
  | formail -IContent-Length:
  :0:
  $MAILDIR/spam/
}
   #You don't need the lockfile since you're apparently using Maildir.
   #This format allows each message to be written to a single file, 
   #eleminating the possibility of file corruption due to more than one 
   #process writing to the same file.


#Spam avoidance of certain routes and if not for me personally 
:0:
* -1^0
*  1^0 ? formail -x"Received:" | egrep -is "dialsprint\.net"
*  1^0 ? formail -x"Received:" | egrep -is "sccmmhc02\.asp\.att\.net"
*  1^0 !
^TO_(mpierce|mrpierce|marvinrpierce)@(optusnet\.com\.au|teebookglobal\.com|303Sport.com|yahoo.com.au)
$MAILDIR/spam/

#Same mistakes :-) Remove the lockfiles, escape your periods.

HTH,

Robert Arnold


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