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 <>
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?

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