[issue25235] EmailMessage.add_attachment() creates parts with spurious MIME-Version header.
R. David Murray
report at bugs.python.org
Fri Sep 9 23:10:52 EDT 2016
R. David Murray added the comment:
Attached is my proposal (absent the doc changes). I'm not happy with it, though, because it means that you don't have the MIME-Version header until you do bytes(msg) (or otherwise generate it), *and* you get a MIME-Version header if you do str(part) for a subpart. That makes debugging significantly confusing, but only with respect to whether or not you have a MIME-Version header.
I'm inclined to commit it, since this whole thing applies *only* to fully constructed messages, rather than parsed-and-manipulated messages. I don't like it, but I haven't come up with a better solution so far.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25235>
_______________________________________
More information about the Python-bugs-list
mailing list