[ python-Bugs-756982 ] mailbox should use email not rfc822
SourceForge.net
noreply at sourceforge.net
Mon Jan 10 08:56:06 CET 2005
Bugs item #756982, was opened at 2003-06-19 12:19
Message generated for change (Comment added) made by anthonybaxter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=756982&group_id=5470
Category: Extension Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Ben Leslie (benno37)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: mailbox should use email not rfc822
Initial Comment:
The mailbox module uses the rfc822 module as its
default factory for creating message objects. The
rfc822 documentation claims that its use is deprecated.
The mailbox module should probably use the new email
module as its default factory.
Of course this has backward compatibility issues, in
which case it should at least be mentioned in the
mailbox documentation that it uses the deprecated
rfc822 module, and provide an example of how to use the
email module instead.
----------------------------------------------------------------------
>Comment By: Anthony Baxter (anthonybaxter)
Date: 2005-01-10 18:56
Message:
Logged In: YES
user_id=29957
Given the amount of code out there using rfc822, should we
instead PDW it? In any case, I'm -0 on putting a
DeprecationWarning on it unless we've removed all use of it
from the stdlib.
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2005-01-09 02:49
Message:
Logged In: YES
user_id=12800
It's a good question. I'd like to say yes so that we can
start adding deprecation warnings to rfc822 for Python 2.5.
----------------------------------------------------------------------
Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2005-01-09 01:22
Message:
Logged In: YES
user_id=469548
So, with the plans to seriously start working deprecating
rfc822, should we use the email module as the default
factory now?
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-06-21 07:48
Message:
Logged In: YES
user_id=12800
I've added some sample code to the mailbox documentation
that explain how to use the email package with the mailbox
module. We can't change the default for backward
compatibility reasons, as you point out.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=756982&group_id=5470
More information about the Python-bugs-list
mailing list