This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author _savage
Recipients _savage, barry, maciej.szulik, matrixise, python-dev, r.david.murray
Date 2018-08-03.10:54:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533293648.54.0.56676864532.issue24218@psf.upfronthosting.co.za>
In-reply-to
Content
So that’s interesting. I thought that setting `international = True` (see line https://github.com/python/cpython/blob/master/Lib/smtplib.py#L947) would be a neat workaround, but the opposite.

When delivering those emails to Gmail I started seeing 

    Failed to send email: (555, b'5.5.2 Syntax error, goodbye. s53-v6sm1864855qts.5 - gsmtp', 'foo@bar.com')

and it turns out (according to the IETF message linter, https://tools.ietf.org/tools/msglint/) that:

-----------
UNKNOWN: unknown header 'User-Agent' at line 4
ERROR: missing mandatory header 'date' lines 1-7
ERROR: missing mandatory header 'return-path' lines 1-7
OK: found part text/plain line 9
WARNING: line 13 too long (109 chars); text/plain shouldn't need folding (RFC 
         2046-4.1.1)
WARNING: line 15 too long (124 chars); text/plain shouldn't need folding (RFC 
         2046-4.1.1)
WARNING: Character set mislabelled as 'utf-8' when 'us-ascii' suffices, body 
         part ending line 22
-----------

It seems that now “Date” and “Return-Path” header entries are missing when the email is generated.

I reverted the initial change. Any updates on the multiple CR problem when flattening?
History
Date User Action Args
2018-08-03 10:54:08_savagesetrecipients: + _savage, barry, r.david.murray, python-dev, maciej.szulik, matrixise
2018-08-03 10:54:08_savagesetmessageid: <1533293648.54.0.56676864532.issue24218@psf.upfronthosting.co.za>
2018-08-03 10:54:08_savagelinkissue24218 messages
2018-08-03 10:54:08_savagecreate