This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mimify.mime_decode_header only latin1
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: fdrake Nosy List: barry, fdrake, ghaering
Priority: low Keywords:

Created on 2002-05-03 16:22 by ghaering, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg10652 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-05-03 16:22
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.
msg10653 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-05-03 16:48
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)
msg10654 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2002-05-03 17:05
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)
msg10655 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-05-08 13:22
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?
msg10656 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-06-18 18:52
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.
History
Date User Action Args
2022-04-10 16:05:17adminsetgithub: 36545
2002-05-03 16:22:06ghaeringcreate