#36746: IndexError in prep_address() when parsing invalid email addresses like
'to@'
-------------------------------+-----------------------------------------
Reporter: Mahdi Dehghan | Owner: Mahdi Dehghan
Type: Bug | Status: closed
Component: Core (Mail) | Version: dev
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------------------------
Comment (by Mike Edmunds):
[This was CPython issue https://github.com/python/cpython/issues/85116. It
was marked completed in April 2024, but without reference to a specific
patch, so I can't tell which Python releases first included the fix.
Current supported Python releases parse 'to@' without raising an error,
instead identifying it as an InvalidHeaderDefect('invalid address in
address-list'). Django 6.0's SMTPBackend.prep_address() converts that
defect to a ValueError as expected.]
--
Ticket URL: <https://code.djangoproject.com/ticket/36746#comment:7>
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 visit
https://groups.google.com/d/msgid/django-updates/0107019abc6fabee-805135f1-40e6-4263-a486-b025c746eea9-000000%40eu-central-1.amazonses.com.