Home
last modified time | relevance | path

Searched refs:formataddr (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Doc/library/
Demail.util.rst32 .. function:: formataddr(pair)
148 The :func:`dump_address_pair` function has been removed; use :func:`formataddr`
/external/python/cpython3/Lib/test/test_email/
Dtest_email.py3077 self.assertEqual(utils.formataddr(utils.parseaddr('<>')), '')
3095 utils.formataddr(('A Silly Person', 'person@dom.ain')),
3100 utils.formataddr(('A (Very) Silly Person', 'person@dom.ain')),
3107 self.assertEqual(utils.parseaddr(utils.formataddr((a, b))), (a, b))
3111 utils.formataddr((r'Arthur \Backslash\ Foobar', 'person@dom.ain')),
3115 self.assertEqual(utils.parseaddr(utils.formataddr((a, b))), (a, b))
3123 self.assertEqual(utils.formataddr((name, addr)), utf8_base64)
3124 self.assertEqual(utils.formataddr((name, addr), 'iso-8859-1'),
3138 self.assertEqual(utils.formataddr((name, addr), mock), mock_expected)
3139 self.assertEqual(utils.formataddr((name, addr), Charset('utf-8')),
[all …]
/external/python/cpython2/Lib/email/
Dutils.py85 def formataddr(pair): function
/external/python/cpython2/Lib/email/test/
Dtest_email_renamed.py2205 self.assertEqual(utils.formataddr(utils.parseaddr('<>')), '')
2209 utils.formataddr(('A Silly Person', 'person@dom.ain')),
2214 utils.formataddr(('A (Very) Silly Person', 'person@dom.ain')),
2218 self.assertEqual(utils.parseaddr(utils.formataddr((a, b))), (a, b))
2222 utils.formataddr(('Arthur \Backslash\ Foobar', 'person@dom.ain')),
2226 self.assertEqual(utils.parseaddr(utils.formataddr((a, b))), (a, b))
2235 self.assertEqual(utils.formataddr((a, b)), y)
2245 utils.formataddr(('A Silly; Person', 'person@dom.ain')),
Dtest_email.py2307 self.assertEqual(Utils.formataddr(Utils.parseaddr('<>')), '')
2311 Utils.formataddr(('A Silly Person', 'person@dom.ain')),
2316 Utils.formataddr(('A (Very) Silly Person', 'person@dom.ain')),
2320 self.assertEqual(Utils.parseaddr(Utils.formataddr((a, b))), (a, b))
2324 Utils.formataddr(('Arthur \Backslash\ Foobar', 'person@dom.ain')),
2328 self.assertEqual(Utils.parseaddr(Utils.formataddr((a, b))), (a, b))
2337 self.assertEqual(Utils.formataddr((a, b)), y)
2365 Utils.formataddr(('A Silly; Person', 'person@dom.ain')),
/external/python/cpython3/Lib/email/
Dutils.py76 def formataddr(pair, charset='utf-8'): function
/external/python/cpython3/Doc/library/
Demail.utils.rst71 .. function:: formataddr(pair, charset='utf-8')
/external/python/cpython3/Lib/test/
Dtest_smtplib.py1231 message['From'] = email.utils.formataddr(('Michaël', 'michael@example.com'))
1232 message['To'] = email.utils.formataddr(('René', 'rene@example.com'))
/external/python/cpython3/Doc/whatsnew/
D3.3.rst2417 * :func:`email.utils.formataddr` now does the correct content transfer
/external/python/cpython3/Misc/
DHISTORY9829 - Issue #1690608: email.util.formataddr is now RFC 2047 aware: it now has a