#34961: Add a max_length parameter to EmailValidator
-------------------------------------+-------------------------------------
     Reporter:  jecarr               |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Core (Other)         |                  Version:  4.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 Replying to [comment:6 Natalia Bidart]:
 > Mariusz, I checked the RFC5321 and as per my reading, the recommendation
 is: for the local part of the email address (before the `@` symbol), no
 more than 64 characters long. For the domain part, no more than 255
 characters. That adds up to 319 plus the `@` sign, so 320chars as you
 already added to the `EmailValidator`. Where is it that the max length was
 changed to 254?

 Yes, but a total size limit is defined in [https://www.rfc-
 editor.org/rfc/rfc5321#section-4.5.3.1.3 4.5.3.1.3]:

 > ''The maximum total length of a reverse-path or forward-path is 256
 octets (including the punctuation and element separators).''

 RFC 3696 was corrected [https://www.rfc-
 editor.org/errata_search.php?rfc=3696 here].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34961#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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d1caac0f4-276d423b-2047-4ceb-9581-63897846b10d-000000%40eu-central-1.amazonses.com.

Reply via email to