procmail
[Top] [All Lists]

Re: matching on bad word list but which word was it ?

2006-08-20 07:26:17


Ruud H.G. van Tol schrieb:


You can easily do that in pure procmail too, check the archives.

Example:

  BADWORDS = '(\
bad1|\
bad2|\
bad3|\
intelligent design)'

  :0
  *$ B ?? ()\<\/$BADWORDS\>
  { BADWORD =  $MATCH }

  
so this working now very fine !!

but i have to use dquotes because i am using var inside
the badword list what makes it a lot shorter

 BADWORDS = "(\
bad1|\
bad2|\
bad3|\
$V$S$I+$S$A+$S$G$S$R$S$A)"

  :0
  *$ B ?? ()\<\/$BADWORDS\>
  { BADWORD =  $MATCH }


Matthias


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail