[Python-bugs-list] [ python-Bugs-551912 ] mimify.mime_decode_header only latin1

noreply@sourceforge.net noreply@sourceforge.net
Tue, 18 Jun 2002 11:52:32 -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: Closed
Resolution: Wont Fix
Priority: 3
Submitted By: Gerhard Häring (ghaering)
Assigned to: Fred L. Drake, Jr. (fdrake)
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: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-18 14:52

Message:
Logged In: YES 
user_id=3066

Documentation updated to note the limitation in
Doc/lib/libmimify.tex revisions 1.12, 1.11.18.1, and 1.10.8.1.

----------------------------------------------------------------------

Comment By: Gerhard Häring (ghaering)
Date: 2002-05-08 09:22

Message:
Logged In: YES 
user_id=163326

Assigning to Fred Drake and lowering priority and marking
WONTFIX.

Fred, do you think that a note should be added to the docs
about the weaknesses of the mimify module and that the new
stuff from the email module should be used instead?

----------------------------------------------------------------------

Comment By: Barry A. 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