#33660: EmailMessage encode the subject in base64 when translated and contains
non
US-ASCII characters
-------------------------------------+-------------------------------------
Reporter: Yann | Owner: nobody
Type: Bug | Status: new
Component: Core | Version: 4.0
(Mail) | Keywords: EmailMessage
Severity: Normal | Translation base64 quoted-printable
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The usual behavior of the EmailMessage class regarding its subject is to
keep it as it is if i contains only US-ASCII characters and to encode it
as quoted-printable if it contains non US-ASCII characters.
That works well and avoid our emails to be considered as pishing by
antispam from email servers
But in the specific context of translations there is a bug -> if the
subject of an email is translated into another language (through the
built-in django translations tools) and contains non US-ASCII characters,
by an mechanism I didn't catch, the subject is encoded as base64 and not
quoted-printable.
This results in being considered as spam by the email servers (tested on
Gandi and Gmail)...
--
Ticket URL: <https://code.djangoproject.com/ticket/33660>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701805ce5580a-242808e2-6f29-49bd-a747-d651c7263a08-000000%40eu-central-1.amazonses.com.