[Python-bugs-list] [ python-Bugs-551912 ] mimify.mime_decode_header only latin1
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 03 May 2002 10:05:50 -0700
Bugs item #551912, was opened at 2002-05-03 12:22
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=551912&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gerhard Häring (ghaering)
Assigned to: Barry Warsaw (bwarsaw)
Summary: mimify.mime_decode_header only latin1
Initial Comment:
This function only works for iso-8859-1. If you look at
the regex it uses, it's also clear why. I'll try to
come up with a patch.
----------------------------------------------------------------------
>Comment By: Barry Warsaw (bwarsaw)
Date: 2002-05-03 13:05
Message:
Logged In: YES
user_id=12800
Yup, I agree. For a while, I've wanted to deprecate mimify,
(the api to) rfc822, MIMEWriter, and mimetools. I think the
hangup on doing this for Python 2.2 was to try to come up
with recipes for folks to migrate their code to the email
package. I don't have time to do that though. Maybe a faq
or howto on the email package could address these issues, so
that we can deprecate them for Python2.3 (but not remove
them for a long time, probably 2 years at least, see PEP 4)
----------------------------------------------------------------------
Comment By: Gerhard Häring (ghaering)
Date: 2002-05-03 12:48
Message:
Logged In: YES
user_id=163326
Some of the code in this module is rather brain-dead (not
unicode-aware, hard-wired to latin1). Maybe it's best to
deprecate it or mark it as buggy in the docs. The new email
module provides better functions for this, anyway (info from
MvL):
email.Utils.decode (Python 2.2)
email.Header.decode_header (CVS)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=551912&group_id=5470