Message296378
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) |
|
Date |
User |
Action |
Args |
2017-06-19 21:19:46 | Michael Salsone | set | recipients:
+ Michael Salsone, barry, r.david.murray |
2017-06-19 21:19:46 | Michael Salsone | set | messageid: <1497907186.78.0.0626439777359.issue30706@psf.upfronthosting.co.za> |
2017-06-19 21:19:46 | Michael Salsone | link | issue30706 messages |
2017-06-19 21:19:46 | Michael Salsone | create | |
|