Lines Matching refs:addr_spec
14 def __init__(self, display_name='', username='', domain='', addr_spec=None):
19 specified together by using the addr_spec keyword *instead of* the
20 username and domain keywords. If an addr_spec string is specified it
24 An Address object has display_name, username, domain, and addr_spec
25 attributes, all of which are read-only. The addr_spec and the string
31 inputs = ''.join(filter(None, (display_name, username, domain, addr_spec)))
36 # application program creates an Address object using an addr_spec
39 if addr_spec is not None:
43 a_s, rest = parser.get_addr_spec(addr_spec)
45 raise ValueError("Invalid addr_spec; only '{}' "
47 a_s, addr_spec))
69 def addr_spec(self):
70 """The addr_spec (username@domain) portion of the address, quoted
92 addr_spec = '' if self.addr_spec=='<>' else self.addr_spec
93 return "{} <{}>".format(disp, addr_spec)
94 return self.addr_spec