@classmethod<EOL><INDENT>def from_file(cls, fp, is_outlook=False):<DEDENT>
log.debug("<STR_LIT>".format(fp))<EOL>with ported_open(fp) as f:<EOL><INDENT>message = email.message_from_file(f)<EOL><DEDENT>if is_outlook:<EOL><INDENT>log.debug("<STR_LIT>".format(fp))<EOL>os.remove(fp)<EOL><DEDENT>return cls(message)<EOL>
Init a new object from a file path.

Args:
    fp (string): file path of raw email
    is_outlook (boolean): if True is an Outlook email

Returns:
    Instance of MailParser