[issue756982] mailbox should use email not rfc822

synx report at bugs.python.org
Tue Nov 27 10:49:21 CET 2007


synx added the comment:

I dunno if this is helpful, but in the 2.5 module, it parses mailboxes
into rfc822 messages, but then expects them to be email.Message messages
when unparsing them back to a mailbox. mbox2.add(mbox1.popitem()[1])
fails with rfc822 as the default factory. Since the "factory" is the
only thing still using rfc822, it's easy to remove the use of rfc822
from this module entirely, which also eliminates the parsing/unparsing
disconnect.

----------
nosy: +synx
Added file: http://bugs.python.org/file8812/mailbox.py.patch

____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue756982>
____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailbox.py.patch
Type: text/x-patch
Size: 1364 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071127/46824235/attachment.bin 


More information about the Python-bugs-list mailing list