There are no base classes.
There are no implemented interfaces.
There are no attributes in this class.
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.
parsestr(text, headersonly=False)
Create a message structure from a string.
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.