Back to index

python3.2  3.2.2
Public Member Functions
email.parser.HeaderParser Class Reference
Inheritance diagram for email.parser.HeaderParser:
Inheritance graph
[legend]
Collaboration diagram for email.parser.HeaderParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def parse
def parsestr

Detailed Description

Definition at line 86 of file parser.py.


Member Function Documentation

def email.parser.HeaderParser.parse (   self,
  fp,
  headersonly = True 
)
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.

Reimplemented from email.parser.Parser.

Definition at line 87 of file parser.py.

00087 
00088     def parse(self, fp, headersonly=True):
00089         return Parser.parse(self, fp, True)

Here is the caller graph for this function:

def email.parser.HeaderParser.parsestr (   self,
  text,
  headersonly = True 
)
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.

Reimplemented from email.parser.Parser.

Definition at line 90 of file parser.py.

00090 
00091     def parsestr(self, text, headersonly=True):
00092         return Parser.parsestr(self, text, True)
00093 


The documentation for this class was generated from the following file: