mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #27696 -- Measured email long lines on encoded content
Thanks Pavel Pokrovskiy for the report and Tim Graham for the review.
This commit is contained in:
parent
ad7f3c0b7b
commit
9390533951
2 changed files with 6 additions and 2 deletions
|
@ -779,7 +779,8 @@ class BaseEmailBackendTests(HeadersCheckMixin, object):
|
|||
Message body containing longer lines are converted to Quoted-Printable
|
||||
to avoid having to insert newlines, which could be hairy to do properly.
|
||||
"""
|
||||
email = EmailMessage('Subject', "Comment ça va? " * 100, 'from@example.com', ['to@example.com'])
|
||||
# Unencoded body length is < 998 (840) but > 998 when utf-8 encoded.
|
||||
email = EmailMessage('Subject', 'В южных морях ' * 60, 'from@example.com', ['to@example.com'])
|
||||
email.send()
|
||||
message = self.get_the_message()
|
||||
self.assertMessageHasHeaders(message, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue