<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/django.git/tests/mail, branch c/32409-async-tests-cannot-call-orm</title>
<subtitle>github.com: django/django.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/'/>
<entry>
<title>Used mock.Mock() in SMTPBackendTests.</title>
<updated>2020-08-07T18:31:47+00:00</updated>
<author>
<name>Konstantin Alekseev</name>
<email>mail@kalekseev.com</email>
</author>
<published>2019-12-01T15:01:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=e5118b545b05653d9ea18c7733996b2e38c0ff8f'/>
<id>e5118b545b05653d9ea18c7733996b2e38c0ff8f</id>
<content type='text'>
Using bool caused mypy typecheck failures.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using bool caused mypy typecheck failures.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.</title>
<updated>2020-07-20T05:10:40+00:00</updated>
<author>
<name>Florian Apolloner</name>
<email>florian@apolloner.eu</email>
</author>
<published>2020-07-15T05:30:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=96a3ea39ef0790dbc413dde0a3e19f6a769356a2'/>
<id>96a3ea39ef0790dbc413dde0a3e19f6a769356a2</id>
<content type='text'>
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.

Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.

See https://bugs.python.org/issue39073

Co-Authored-By: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.

Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.

See https://bugs.python.org/issue39073

Co-Authored-By: Mariusz Felisiak &lt;felisiak.mariusz@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #31784 -- Added test for preventing header injection in display name of email addresses.</title>
<updated>2020-07-20T05:10:16+00:00</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2020-07-16T08:03:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=f405954ea24dcce7ed01e488a0778be7e441b757'/>
<id>f405954ea24dcce7ed01e488a0778be7e441b757</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Capitalized Unicode in docs, strings, and comments.</title>
<updated>2020-04-20T10:10:33+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2020-04-18T14:46:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=505fec6badba0622bbf97bb659188c3d62a9bc58'/>
<id>505fec6badba0622bbf97bb659188c3d62a9bc58</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjusted expected exception message for Windows.</title>
<updated>2019-11-06T13:34:44+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-11-06T13:34:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=e3c2fae4cd549a6aeefcf7b217ba4b173489e18c'/>
<id>e3c2fae4cd549a6aeefcf7b217ba4b173489e18c</id>
<content type='text'>
Test failure introduced in fbbff7f80870bc3e98de4a2fc9cd853949842fd0.

Windows uses a different error message when a non-path is passed to
os.path functions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test failure introduced in fbbff7f80870bc3e98de4a2fc9cd853949842fd0.

Windows uses a different error message when a non-path is passed to
os.path functions.</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #29983 -- Added pathlib.Path support to the file email backend.</title>
<updated>2019-11-06T08:33:07+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-11-06T08:33:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=fbbff7f80870bc3e98de4a2fc9cd853949842fd0'/>
<id>fbbff7f80870bc3e98de4a2fc9cd853949842fd0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #30608 -- Fixed non-unicode EmailMessage crash when domain name for localhost is non-ASCII.</title>
<updated>2019-07-03T08:49:03+00:00</updated>
<author>
<name>Chason Chaffin</name>
<email>chason@gmail.com</email>
</author>
<published>2019-07-02T12:15:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=55b68de643b5c2d5f0a8ea7587ab3b2966021ccc'/>
<id>55b68de643b5c2d5f0a8ea7587ab3b2966021ccc</id>
<content type='text'>
Assisted by felixxm.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assisted by felixxm.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #30604 -- Made mail_admins()/mail_managers() raise ValueError if ADMINS/MANAGERS is set incorrectly.</title>
<updated>2019-07-02T05:34:07+00:00</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2019-06-28T23:50:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=090ca6512f514556394d4a8d321db7883f03e2a6'/>
<id>090ca6512f514556394d4a8d321db7883f03e2a6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #30512, #15042 -- Added local-only address to sanitize_email() tests cases.</title>
<updated>2019-06-13T15:29:58+00:00</updated>
<author>
<name>Carlton Gibson</name>
<email>carlton.gibson@noumenal.es</email>
</author>
<published>2019-06-13T14:39:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=1564e42ad397021093585147875a21dae1a3b3fc'/>
<id>1564e42ad397021093585147875a21dae1a3b3fc</id>
<content type='text'>
email.headerregistry.parser.get_mailbox() returns a token with a `token_type` attribute.

If `token_type` is `’invalid-mailbox’` then RFC violations have been detected. Emails with only the local part, and no domain,  are correctly parsed but are marked as `’invalid-mailbox’`.

As per #15042, local-only are supported, to enable sending to addresses on localhost.

sanitize_email() does not currently check `token_type`. This test is added to avoid a regression in case this is revisited in the future.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
email.headerregistry.parser.get_mailbox() returns a token with a `token_type` attribute.

If `token_type` is `’invalid-mailbox’` then RFC violations have been detected. Emails with only the local part, and no domain,  are correctly parsed but are marked as `’invalid-mailbox’`.

As per #15042, local-only are supported, to enable sending to addresses on localhost.

sanitize_email() does not currently check `token_type`. This test is added to avoid a regression in case this is revisited in the future.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed #30512 -- Used email.headerregistry.parser for parsing emails in sanitize_address().</title>
<updated>2019-06-13T14:22:15+00:00</updated>
<author>
<name>Joachim Jablon</name>
<email>joachim.jablon@people-doc.com</email>
</author>
<published>2019-04-29T16:48:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/django.git/commit/?id=2628ea95151feb68f43a2a740e6fb0799a94b14b'/>
<id>2628ea95151feb68f43a2a740e6fb0799a94b14b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
