#33969: Improve django.core.mail.messages EAI processing
-----------------------------------------+------------------------------
Reporter: j-bernard | Owner: nobody
Type: Uncategorized | Status: new
Component: Core (Mail) | Version: 4.0
Severity: Normal | Keywords: EAI IDNA RFC
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------------
This ticket is the third and last of a list of tickets aiming at bringing
Email Address Internationalization (EAI) compliance to Django by
supporting International Domain Name (IDN) with regards to the latest
standard (IDNA 2008) and fixing some processing on internationalized
domains or email addresses.
Previous tickets: #33967, #33968
`sanitize_address` transforms the email address domain in Punycode
regardless of the email server's compliance with EAI.
The main issue here is that the conversion is performed with the
deprecated IDNA 2003 standard instead of IDNA 2008 (see the previous
ticket for more information) but this conversion should also be skipped
for consistency with the user input and only performed if the server does
not support Unicode email addresses.
The logic (with the backend using Python smtplib) would then be:
- try to send the message, regardless of the presence of Unicode in the
address (Python smtplib will add the right options if you use the
send_message method else the SMTPUTF8 option should be provided)
- if smtplib.SMTPNotSupportedError is raised
- if the local-part is ASCII only, convert the domain to A-Label
using and IDNA 2008 compliant library and retry
- else return failure
--
Ticket URL: <https://code.djangoproject.com/ticket/33969>
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/01070182f048558c-1e606e0e-e2a0-4774-99cd-4e290efc8055-000000%40eu-central-1.amazonses.com.