rfc822.AddrlistClass.getatom

AddrlistClass.getatom(atomends=None)[source]

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).