New submission from Kai Groner: Because MIMEPart.add_attachment() creates parts using type(self), EmailMessage.add_attachment() creates parts of type EmailMessage. This results in a MIME-Version header being added to parts where it isn't needed.
https://tools.ietf.org/html/rfc2045#section-4 ---------- components: email files: test_add_attachment_does_not_add_MIME_Version_in_attachment.patch keywords: patch messages: 251600 nosy: barry, groner, r.david.murray priority: normal severity: normal status: open title: EmailMessage.add_attachment() creates parts with spurious MIME-Version header. type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file40576/test_add_attachment_does_not_add_MIME_Version_in_attachment.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com