(fp, *args, **kws)
return Parser(*args, **kws).parse(fp)
Read a file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
Read a file and parse its contents into a Message object model.
Read a file and parse its contents into a Message object model .
def message_from_file(fp, *args, **kws):
    """Read a file and parse its contents into a Message object model.

    Optional _class and strict are passed to the Parser constructor.
    """
    from email.parser import Parser
    return Parser(*args, **kws).parse(fp)
def message_from_file ( fp , * args , * * kws ) : from email . parser import Parser return Parser ( * args , * * kws ) . parse ( fp )