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.

Author r.david.murray
Recipients Alex Quinn, barry, dato, meatballhat, pitrou, r.david.murray, tercero12, vstinner
Date 2010-10-02.02:37:29
SpamBayes Score 0.0029400536
Marked as misclassified No
Message-id <1285987051.38.0.71481025789.issue4661@psf.upfronthosting.co.za>
In-reply-to
Content
In case it isn't clear, the code patch is now complete, so anyone who wants to give it a review, please do.  I'll add the docs soon, but the basic idea is you can put bytes in by either using message_from_bytes or by using the 'ascii' codec and the 'surrogateescape' error handler on a file passed to msg_from_file, and you can get bytes out by using BytesGenerator and passing it a file-like object that accepts bytes.  As a side benefit, Generator will correctly render (as unicode) the content of a section with a ContentTransferEncoding of '8bit'.
History
Date User Action Args
2010-10-02 02:37:31r.david.murraysetrecipients: + r.david.murray, barry, pitrou, vstinner, dato, tercero12, Alex Quinn, meatballhat
2010-10-02 02:37:31r.david.murraysetmessageid: <1285987051.38.0.71481025789.issue4661@psf.upfronthosting.co.za>
2010-10-02 02:37:30r.david.murraylinkissue4661 messages
2010-10-02 02:37:29r.david.murraycreate