email.message_from_string()

email.message_from_string(s, _class=email.message.Message, *, policy=policy.compat32)

Return a message object structure from a string. This is exactly equivalent to Parser().parsestr(s). _class and policy are interpreted as with the Parser class constructor.

Changed in version 3.3: Removed the strict argument. Added the policy keyword.

doc_python
2016-10-07 17:32:47
Comments
Leave a Comment

Please login to continue.