code: def from_file_obj(cls, fp):
          
          log.debug("Parsing email from file object")
          try:
              fp.seek(0)
          except IOError:
              # When stdout is a TTY it's a character device
              # and it's not seekable, you cannot seek in a TTY.
              pass
          finally:
              s = fp.read()
  
          return cls.from_string(s)
docs: Init a new object from a file-like object.
          Not for Outlook msg.
  
          Args:
              fp (file-like object): file-like object of raw email
  
          Returns:
              Instance of MailParser