[issue29053] Implement >From_ decoding on input from mbox

bpoaugust report at bugs.python.org
Fri Dec 23 20:54:40 EST 2016


bpoaugust added the comment:

Attached please find patch which works for me.

To use it independently of email, do something like:

messages = mailbox.mbox(filename, MboxoFactory)

where:

class MboxoFactory(mailbox.mboxMessage):
    def __init__(self, message=None):
        super().__init__(message=MboxoReader(message))

HTH

----------
Added file: http://bugs.python.org/file46017/mboxo_patch.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29053>
_______________________________________


More information about the Python-bugs-list mailing list