#22976: EmailField: Maximum RFC-compliant length should be 320 characters ------------------------------------+------------------------- Reporter: a.lloyd.flanagan@… | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: master Severity: Normal | Keywords: email limit Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 ------------------------------------+------------------------- The documentation for model.EmailField states
Incompliance to RFCs The default 75 character max_length is not capable of storing all possible RFC3696/5321-compliant email addresses. In order to store all possible valid email addresses, a max_length of 254 is required. In fact, however, RFC3696 states of email address maximum length: That limit is a maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters. I note the same statement regarding the 254-character limit in the Release Notes document for version 1.8. -- Ticket URL: <https://code.djangoproject.com/ticket/22976> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.6a7b24456d46dd17375cb0a37c604374%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.