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 Michael Salsone
Recipients Michael Salsone, barry, r.david.murray
Date 2017-06-19.21:19:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497907186.78.0.0626439777359.issue30706@psf.upfronthosting.co.za>
In-reply-to
Content
I am looking to use the get_body() method from email.message.EmailMessage, but I am unable to create an object of this type. I am attempting to create an object of this from message_from_string (as well as some of the other email.parser methods). But it won't allow me to change the class to email.message.EmailMessage. I've read through the source for some this code, but I don't see where you thread the needle here, is it even possible?

Example:
from email.message import EmailMessage
email.message_from_string(self.original_message, _class=EmailMessage)
History
Date User Action Args
2017-06-19 21:19:46Michael Salsonesetrecipients: + Michael Salsone, barry, r.david.murray
2017-06-19 21:19:46Michael Salsonesetmessageid: <1497907186.78.0.0626439777359.issue30706@psf.upfronthosting.co.za>
2017-06-19 21:19:46Michael Salsonelinkissue30706 messages
2017-06-19 21:19:46Michael Salsonecreate