[ python-Bugs-1637167 ] mailbox.py uses old email names

SourceForge.net noreply at sourceforge.net
Tue Jan 16 23:19:33 CET 2007


Bugs item #1637167, was opened at 2007-01-16 14:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1637167&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Russell Owen (reowen)
Assigned to: Nobody/Anonymous (nobody)
Summary: mailbox.py uses old email names

Initial Comment:
mailbox.py uses old (and presumably deprecated) names for stuff in the email package. This can confuse application packagers such as py2app. I believe the complete list of desirable changes is:

email.Generator -> email.generator
email.Message -> email.message
email.message_from_string -> email.parser.message_from_string
email.message_from_file -> email.parser.message_from_file

I submitted patches for urllib, urllib2 and smptlib but wasn't sure enough of mailbox to do that. Those four modules are the only instances I found that needed changing at the main level of the library.

However, I did not do a recursive search. There may be files inside packages that could also use cleanup.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1637167&group_id=5470


More information about the Python-bugs-list mailing list