procmail
[Top] [All Lists]

Re: filtering spam with chinese Subject (2)

2002-04-16 08:10:23
I just look for an offending character set:

:0 BH
* ks_c_5601-1987
{ :0 /dev/null
}

If you look at the text of the email you are getting (raw, not in a mail client) you can see the character set that is getting you down.
At 04:47 PM 4/16/2002 +0200, Johannes Zellner wrote:
Hi,

I tried to filter spam with chinese characters in the Subject:

:0D
* Subject:[^$pat]*[$pat][$pat][$pat]
spam

where:
pat=' ¡¥¦¨©ª¬­®¯±´µ¶·¸º¾¿ÀÁÂÃÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕ×ØÙÚÛÝÞàáâãæçèéêëìíîïðñòóôõ÷ùúûýþÿ'

I thought of searching for at least 3 bad characters in a row.
Unfortunately it doen't work. I found out, that it works, if
I search only for one character:

:0D
* Subject:[^$pat]*[$pat]
spam

but this is a bit too picky IMO.

Why does the pattern [$pat][$pat][$pat] not work? -- Or in other
words: is there something like \{3,} in procmail to repeat patterns?

--
   Johannes
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail