Opened 10 years ago

Closed 9 years ago

#3603 closed (wontfix)

Email validation error on ip literal mail routes

Reported by: Richard Smith <richard@…> Owned by: Adrian Holovaty
Component: Forms Version: 0.95
Severity: Keywords: ip literal email validator
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Django doesn't validate IP literal email addresses.

May be a pointless patch, but then again, someone may find it useful.

Attachments (1)

emailpatch.patch (910 bytes) - added by Richard Smith <richard@…> 10 years ago.
Email patch

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Richard Smith <richard@…>

Attachment: emailpatch.patch added

Email patch

comment:1 Changed 10 years ago by James Bennett

Component: Core frameworkdjango.newforms
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedDesign decision needed

I think before we go down this route we need to determine just how much of the insanely-complex RFC822 address spec we want to support; it's definitely a diminishing-returns problem...

Also, if this is to be dealt with it needs to be dealt with in newforms, so I'm going to change the component.

comment:2 Changed 10 years ago by Richard Smith <richard@…>

Erm? Come again?

No offence, but email is KINDA core to alot of applications these days. I've not submitted and tested this patch because I thought it might be nice. It is a bug. Django does not support RFC2822 Addresses. It *should*. That's why RFCs exist. Domain literals, while weird and not really accepted, are a part of industry today, and as such are specified as part of the standard.

e.g. In my case, I am sending email to a network device that does not understand properly (read: it's buggy as hell) the emails it should be receiving.

comment:3 Changed 10 years ago by Richard Smith <richard@…>

Incidentally, this is nothing to do with "forms" per se.

It's a model that's actually executing this validator.

comment:4 Changed 9 years ago by richard@…

Resolution: wontfix
Status: newclosed

Superceded by #3989

Note: See TracTickets for help on using tickets.
Back to Top