| email.FeedParser | index /usr/local/lib/python2.4/email/FeedParser.py Module Docs |
FeedParser - An email feed parser.
The feed parser implements an interface for incrementally parsing an email
message, line by line. This has advantages for certain applications, such as
those reading email messages off a socket.
FeedParser.feed() is the primary interface for pushing new data into the
parser. It returns when there's nothing more it can do with the available
data. When you have no more data to push into the parser, call .close().
This completes the parsing and returns the root message object.
The other advantage of this parser is that it will never throw a parsing
exception. Instead, when it finds something unexpected, it adds a 'defect' to
the current message. Defects are just instances that live on the message
object's .defects attribute.
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||
|
| ||||||||||||||||||
| Data | ||
| EMPTYSTRING = '' NL = '\n' NLCRE = <_sre.SRE_Pattern object> NLCRE_bol = <_sre.SRE_Pattern object> NLCRE_crack = <_sre.SRE_Pattern object> NLCRE_eol = <_sre.SRE_Pattern object> NeedMoreData = <object object> headerRE = <_sre.SRE_Pattern object> | ||