#31959 closed Cleanup/optimization (wontfix)
EmailValidator must not accept hyphen as first character
Reported by: | James Pic | Owned by: | nobody |
---|---|---|---|
Component: | Utilities | Version: | 3.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Getting the following exception:
Aug 28 10:57:22 production 83a5b18c66bc[1752]: smtplib.SMTPRecipientsRefused: {'-redacted@…': (501, b'5.1.3 Bad recipient address syntax')}
EmailValidator should not accept a hyphen as first caracter.
Note: Component set to "Utilities" but really I believe a "Validator" Component should be available.
Change History (2)
comment:1 by , 4 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Summary: | EmailValidator must not accept hyphen as first caracter → EmailValidator must not accept hyphen as first character |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 4 years ago
Thanks to you Felix, I now know that EmailField is deliberately broken and untrustable.
However, this needs to be properly documented, and inaccuracies in the documentation must be fixed.
Following-up on this ticket : https://code.djangoproject.com/ticket/31960
Thanks for this ticket, however we discussed a similar case in #25452 and the consensus on the mailing list was to simplify the validation, not make it more comprehensive.