#31784: Emails name over 75 characters are incompatible with the latest 
versions of
python.
-----------------------------+--------------------------------------
     Reporter:  Nick Orr     |                    Owner:  nobody
         Type:  Bug          |                   Status:  closed
    Component:  Core (Mail)  |                  Version:  2.2
     Severity:  Normal       |               Resolution:  invalid
     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 Nick Orr):

 https://github.com/python/cpython/pull/19007/files

 This issue is caused by a recently issued patch for Python as linked
 above. As far as I can tell the standard library does not really care
 about the length in this context. And you are correct we wouldn't want to
 bypass using the stdlib here we might just not want to insert newlines
 when they aren't necessarily required.

 I haven't brought it up with the Python folks but from their point of view
 I'm sure they see their implementation as fine. More so since the
 headerregistry.py file in question has this in its preamble:

 > Eventually HeaderRegistry will be a public API, but it isn't yet, and
 will probably change some before that happens.


 Just for clarity this is the line in question in Django.
 https://github.com/django/django/blob/master/django/core/mail/message.py#L99

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31784#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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.e2cdf233f841de47ffc3d23c607e683a%40djangoproject.com.

Reply via email to