#22561: EmailMessage should respect RFC2822 on max line length
-----------------------------+---------------------------------------------
Reporter: notsqrt | Owner: levkowetz
Type: Bug | Status: new
Component: Core (Mail) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+---------------------------------------------
Changes (by ppokrovsky):
* status: closed => new
* resolution: fixed =>
Comment:
It appears the fix does not work properly on Cyrillic strings.
Tried it out with following snippet:
https://gist.github.com/ppokrovsky/d06d0d9e3c8f55bf15984ecd22954683
with body set to {{{ test_body_lat }}}, the {{{has_long_lines}}} flag in
{{{ django.core.mail.message.SafeMIMEText() }}} is set to {{{ True }}} and
therefore correctly applies 'quoted-printable' encoding, while when body
is set to {{{ test_body_ru }}, it leaves {{{has_long_lines}}} as {{{ False
}}} therefore leaving default charset, which results in broken email body.
--
Ticket URL: <https://code.djangoproject.com/ticket/22561#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.cc047430e3278a874605a62fa0dbf4f8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.