[Mailman-Developers] encoding the subject line..

Tokio Kikuchi tkikuchi@is.kochi-u.ac.jp
Thu, 17 Oct 2002 09:45:39 +0900


>>> Barry, why is mailman encoding the subject line when it doesn't have to?
>>
>>
>> Why? because the recipient prefers it.
>>
>> The member has set his preferred language as non-english.

Some time ago, in CookHeader.py, english is determined to use
'iso-8859-1' because many like to use 8bit character in
us-ascii declared mail.

Again, I think email module should be revised.
I had a little experiment

in ~/pythonlib (email version is 2.4.3)

Python 2.1.3 (#1, Sep 19 2002, 17:00:05)
[GCC 2.95.2 19991024 (release)] on freebsd4
Type "copyright", "credits" or "license" for more information.
 >>> from email.Header import Header
 >>> a = Header('abc','iso-8859-1',70,'Subject')
 >>> print a
=?iso-8859-1?q?abc?=
 >>>

Or, is this version problem? I'm using python 2.1.3 (for Zope's sake).

-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/