#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 Natalia Bidart):

 Replying to [comment:5 Mariusz Felisiak]:
 > We could consider changing the default to `254` characters because it
 was changed in [https://www.rfc-editor.org/rfc/rfc5321#section-4.5.3 RFC
 5321], but this ticket is about adding `max_length` to the validator, so
 it's "wontix" for me.

 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?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34961#comment:6>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018d1ca482c7-6a912ea2-cd04-45f6-82bf-f99c7b36de26-000000%40eu-central-1.amazonses.com.

Reply via email to