#23063: send email 1.6.5 OK, 1.7c1 malformed packet in wireshark
-------------------------------------+-------------------------------------
     Reporter:  contact@…            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Mail)          |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  send_mail, smtp,     |             Triage Stage:
  malformed, packet                  |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by apollo13):

 Does this fix it:

 ```
 diff --git a/django/core/mail/message.py b/django/core/mail/message.py
 index da9891f..961d1a8 100644
 --- a/django/core/mail/message.py
 +++ b/django/core/mail/message.py
 @@ -149,7 +149,7 @@ class MIMEMixin():
              """
              fp = six.BytesIO()
              g = generator.BytesGenerator(fp, mangle_from_=False)
 -            g.flatten(self, unixfrom=unixfrom)
 +            g.flatten(self, unixfrom=unixfrom, linesep='\r\n')
              return fp.getvalue()


 ```

--
Ticket URL: <https://code.djangoproject.com/ticket/23063#comment:21>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/077.3ec141c33e32f3b73778c18241b01784%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to