procmail
[Top] [All Lists]

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

2006-08-20 03:59:49


Dallman Ross schrieb:
You need to use the match token, "\/" first to grab the word.
(See man procmailrc page and look for "'\/' token".)


   * ()\/(bad1|bad2|bad3|bad4|bad5)

The "()" is an empty group, used because a "naked" slash used
in that first position in the regex needs quoting, but slashes
in other positions don't.  We could also have used another slash
as a quote char, but the parens are easier to understand and
the "received wisdom" to use in this case among procmailers.


  
OK !

so i go to use ()for a leading \ in the regex

like

*  B ?? ()\<iframe src=3D 

and to  read qhat Procmail matched  into a var

*  B  ??  ()\/ \<iframe src=3D 
{ BAD=$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