Go to the latest version of this document.

# ``twisted`.`mail`.`smtp`.`Address``

class documentation

`class Address: (source)`

Constructor: `Address(addr, defaultDomain)`

View In Hierarchy

Parse and hold an RFC 2821 address.

Source routes are stipped and ignored, UUCP-style bang-paths and %-style routing are not parsed.

Method | `__bytes__` | Undocumented
Method | `__init__` | Undocumented
Method | `__repr__` | Undocumented
Method | `__str__` | Undocumented
Method | `dequote` | Remove RFC-2821 quotes from address.
Class Variable | `atomre` | Undocumented
Class Variable | `dequotebs` | Undocumented
Class Variable | `tstring` | Undocumented
Instance Variable | `__dict__` | Undocumented
Instance Variable | `addrstr` | Undocumented
Instance Variable | `domain` | The domain within which this address resides.
Instance Variable | `local` | The local ("user") portion of this address.

def __bytes__(self) -> `bytes`: (source)

Undocumented

def __init__(self, addr, defaultDomain=None): (source)

Undocumented

def __repr__(self) -> `str`: (source)

Undocumented

def __str__(self) -> `str`: (source)

Undocumented

def dequote(self, addr): (source)

Remove RFC-2821 quotes from address.

atomre = (source)

Undocumented

dequotebs = (source)

Undocumented

tstring = (source)

Undocumented

__dict__ = (source)

Undocumented

addrstr = (source)

Undocumented

domain: `bytes` = (source)

The domain within which this address resides.

local: `bytes` = (source)

The local ("user") portion of this address.