Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | gotonext |
def | getaddrlist |
def | getaddress |
def | getrouteaddr |
def | getaddrspec |
def | getdomain |
def | getdelimited |
def | getquote |
def | getcomment |
def | getdomainliteral |
def | getatom |
def | getphraselist |
Data Fields | |
specials | |
pos | |
LWS | |
CR | |
atomends | |
phraseends | |
field | |
commentlist | |
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. http://www.faqs.org/rfcs/rfc2822.html Note: this class interface is deprecated and may be removed in the future. Use rfc822.AddressList instead.
def getaddress | ( | self) |
Parse the next address.
Definition at line 558 of file rfc822.py.
References AddrlistClass.commentlist, AddrlistClass.field, AddrlistClass.getaddress(), AddrlistClass.getaddrspec(), AddrlistClass.getphraselist(), AddrlistClass.getrouteaddr(), AddrlistClass.gotonext(), dospath.join(), _Subfile.pos, MatchObject.pos, AddrlistClass.pos, and AddrlistClass.specials.
def getaddrlist | ( | self) |
Parse all addresses. Returns a list containing all of the addresses.
Definition at line 544 of file rfc822.py.
References AddrlistClass.getaddress().
def getaddrspec | ( | self) |
Parse an RFC 2822 addr-spec.
Definition at line 648 of file rfc822.py.
References AddrlistClass.atomends, AddrlistClass.field, AddrlistClass.getatom(), AddrlistClass.getdomain(), AddrlistClass.getquote(), AddrlistClass.gotonext(), dospath.join(), _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def getatom | ( | self, | |
atomends = None |
|||
) |
Parse an RFC 2822 atom. Optional atomends specifies a different set of end token delimiters (the default is to use self.atomends). This is used e.g. in getphraselist() since phrase endings must not include the `.' (which is legal in phrases).
Definition at line 738 of file rfc822.py.
References AddrlistClass.atomends, AddrlistClass.field, dospath.join(), _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def getcomment | ( | self) |
Get a parenthesis-delimited fragment from self's field.
Definition at line 730 of file rfc822.py.
References AddrlistClass.getdelimited().
def getdelimited | ( | self, | |
beginchar, | |||
endchars, | |||
allowcomments = 1 |
|||
) |
Parse a header fragment delimited by special characters. `beginchar' is the start character for the fragment. If self is not looking at an instance of `beginchar' then getdelimited returns the empty string. `endchars' is a sequence of allowable end-delimiting characters. Parsing stops when one of these is encountered. If `allowcomments' is non-zero, embedded RFC 2822 comments are allowed within the parsed fragment.
Definition at line 690 of file rfc822.py.
References AddrlistClass.field, AddrlistClass.getcomment(), dospath.join(), _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def getdomain | ( | self) |
Get the complete domain name from an address.
Definition at line 672 of file rfc822.py.
References AddrlistClass.atomends, AddrlistClass.field, AddrlistClass.getatom(), AddrlistClass.getcomment(), AddrlistClass.getdomainliteral(), dospath.join(), AddrlistClass.LWS, _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def getdomainliteral | ( | self) |
Parse an RFC 2822 domain-literal.
Definition at line 734 of file rfc822.py.
References AddrlistClass.getdelimited().
def getphraselist | ( | self) |
Parse a sequence of RFC 2822 phrases. A phrase is a sequence of words, which are in turn either RFC 2822 atoms or quoted-strings. Phrases are canonicalized by squeezing all runs of continuous whitespace into one space.
Definition at line 757 of file rfc822.py.
References AddrlistClass.field, AddrlistClass.getatom(), AddrlistClass.getcomment(), AddrlistClass.getquote(), AddrlistClass.LWS, AddrlistClass.phraseends, _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def getquote | ( | self) |
Get a quote-delimited fragment from self's field.
Definition at line 726 of file rfc822.py.
References AddrlistClass.getdelimited().
def getrouteaddr | ( | self) |
Parse a route address (Return-path value). This method just skips all the route stuff and returns the addrspec.
Definition at line 616 of file rfc822.py.
References AddrlistClass.field, AddrlistClass.getaddrspec(), AddrlistClass.getdomain(), AddrlistClass.gotonext(), _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.
def gotonext | ( | self) |
Parse up to the start of the next address.
Definition at line 535 of file rfc822.py.
References AddrlistClass.field, AddrlistClass.getcomment(), AddrlistClass.LWS, _Subfile.pos, MatchObject.pos, and AddrlistClass.pos.