def message_from_string(s, *args, **kws):
    from email.parser import Parser
    return Parser(*args, **kws).parsestr(s)
Parse a string into a Message object model.
dataset/ETHPy150Open babble/babble/include/jython/Lib/email/__init__.py/message_from_string