The addr_spec (username@domain) portion of the address, quoted according to RFC 5322 rules, but with no Content Transfer Encoding.
(self)
| 65 | |
| 66 | @property |
| 67 | def addr_spec(self): |
| 68 | """The addr_spec (username@domain) portion of the address, quoted |
| 69 | according to RFC 5322 rules, but with no Content Transfer Encoding. |
| 70 | """ |
| 71 | lp = self.username |
| 72 | if not parser.DOT_ATOM_ENDS.isdisjoint(lp): |
| 73 | lp = parser.quote_string(lp) |
| 74 | if self.domain: |
| 75 | return lp + '@' + self.domain |
| 76 | if not lp: |
| 77 | return '<>' |
| 78 | return lp |
| 79 | |
| 80 | def __repr__(self): |
| 81 | return "{}(display_name={!r}, username={!r}, domain={!r})".format( |
nothing calls this directly
no test coverage detected