Address parser class by Ben Escoto.
To understand what this class does, it helps to have a copy of RFC
2822 in front of you.
Note: this class interface is deprecated and may be removed in the
future. Use rfc822.AddressList instead.
|
__init__(self,
field)
Initialize a new instance. |
|
|
|
gotonext(self)
Parse up to the start of the next address. |
|
|
|
|
|
getaddress(self)
Parse the next address. |
|
|
|
getrouteaddr(self)
Parse a route address (Return-path value). |
|
|
|
getaddrspec(self)
Parse an RFC 2822 addr-spec. |
|
|
|
getdomain(self)
Get the complete domain name from an address. |
|
|
|
getdelimited(self,
beginchar,
endchars,
allowcomments=1)
Parse a header fragment delimited by special characters. |
|
|
|
getquote(self)
Get a quote-delimited fragment from self's field. |
|
|
|
getcomment(self)
Get a parenthesis-delimited fragment from self's field. |
|
|
|
getdomainliteral(self)
Parse an RFC 2822 domain-literal. |
|
|
|
getatom(self,
atomends=None)
Parse an RFC 2822 atom. |
|
|
|
|