[Mailman-Developers] [PATCH] Fix endless prefix adding with q-p/base64 Subject lines

Ben Gertzfield che@debian.org
Mon, 8 Apr 2002 18:44:40 +0900


On Monday, April 8, 2002, at 06:41 , Mikhail Zabaluev wrote:

> Broad assumptions stink :)
> Why not Unicode, however? It would be nice if email.Header.Header
> objects would dump themselves into Unicode strings, so that we
> can match regex there without hassle. See my feature request
> at SF for mimelib.

That will work for encodings that Python happens to have a Unicode codec 
installed for, but certainly not for all encodings.  Also, we will lose 
information if we try to take the Unicode header and make a non-Unicode 
header out of it again (if that's even possible!).. not all mail clients 
support UTF-8 headers yet, especially Unix ones.

I think I need to do a thorough revamping of the email.Charset and 
email.Header modules to be a bit more Unicode-friendly (they are 
Unicode-friendly now, but don't really spit out Unicode too easily).

Ben