Function
email.message_from_string

Signature

message_from_string(s, *args, **kws)

Documentation String

Parse a string into a Message object model.

Optional _class and strict are passed to the Parser constructor.