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).
------------------------------------------------------
Mailman-Users mailing list [email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to