from email.parser import Parser


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.
    """
    return Parser(*args, **kws).parse(fp)