#30512 closed Cleanup/optimization (fixed)
Update mail backend to use modern standard library parsing approach.
Reported by: | Joachim Jablon | Owned by: | Joachim Jablon |
---|---|---|---|
Component: | Core (Mail) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.core.mail.message.sanitize_address
uses email.utils.parseaddr
from the standard lib. On Python 3, email.headerregistry.parser.get_mailbox()
does the same, and is less error-prone.
Change History (9)
comment:1 by , 5 years ago
Has patch: | set |
---|
comment:2 by , 5 years ago
Summary: | Update mail backend to use modern standard library parsing approach → Update mail backend to use modern standard library parsing approach. |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 5 years ago
comment:5 by , 5 years ago
Needs tests: | set |
---|
comment:6 by , 5 years ago
Needs tests: | unset |
---|
comment:7 by , 5 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
In f841a77: