[Mailman-Users] spam filtering messages containing certain 8 bit characters

William Yardley mailman at veggiechinese.net
Thu Oct 13 03:58:50 CEST 2011

Does Mailman base64 decode the subject before applying a regex, and if
so, can I use UTF-8 character names in the regex to match various
types of 8-bit characters?

Say, for example, that I want to block messages with "电话卡" somewhere
in the subject line.

Obviously, the actual raw Subject header will be more like:

 Subject: =?GB2312?B?[encoded stuff here]?=
 Subject: =?utf-8?B?[encoded stuff here]?=

I tried putting in a regex to hold messages matching:
 Subject: .*\u7535\u8bdd\u5361

And that didn't seem to work. As far as I can tell, there is no way to
find a substring that will always match when the Subject header is
base64 encoded.

(Putting in 'Subject: .*电话卡' also does not work).

More information about the Mailman-Users mailing list