PyDocs

Nav

Internet Data Handling

Parser.parse

  • Parser.parse(fp, headersonly=False)
Create a message structure from the data in a file.

Reads all the data from the file and returns the root of the message
structure.  Optional headersonly is a flag specifying whether to stop
parsing after reading the headers or not.  The default is False,
meaning it parses the entire contents of the file.
0 Examples
No examples for email.parser/Parser.parse.
See Also
No see-alsos for email.parser/Parser.parse
0 Notes
No notes for Parser.parse