#22976 closed Bug (invalid)
EmailField: Maximum RFC-compliant length should be 320 characters
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | email limit |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
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.
Change History (2)
comment:1 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Whoops, my mistake for not checking the errata closely. Thanks for the info.
Yes, it was initially 320, but subsequently revised. Please see this errata.