[issue1823] Possible to set invalid Content-Transfer-Encoding on email.mime.multipart.MIMEMultipart
R. David Murray
report at bugs.python.org
Tue Dec 28 05:56:23 CET 2010
R. David Murray <rdmurray at bitdance.com> added the comment:
As far as I can tell it is simply wrong per-RFC to put a charset parameter on a mulitpart content-type. So I think this should, indeed, raise an error on the Multipart subtype.
If someone sets any charset, the CTE is set wrong. So code that sets charset is already broken, even though tolerant mailers will accept the resulting message (but some mailers won't, as described in this issue).
So, I think set_charset on MIMEMultipart should be deprecated and turned into a no-op in 3.2.
stage: -> needs patch
versions: -Python 2.7, Python 3.1
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list