procmail
[Top] [All Lists]

Re: filtering spam with chinese Subject (2)

2002-04-16 08:23:05
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.

You need to tell procmail to expand the variable $pat with a '$' flag on
the condition line.

 :0
 * $ Subject:.*[$pat][$pat][$pat]
 spam

Hope that helps,
Martin
-- 
Martin McCarthy                 /</    http://procmail.non-prophet.org
    `Procmail Companion'        \>\
     Addison Wesley             /</                  PGP key available
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail