[issue18886] BytesGenerator does not handle 'binary' CTE correctly

Surya K report at bugs.python.org
Tue Mar 4 12:28:57 CET 2014


Surya K added the comment:

Forget about my previous comment.
David Murray:

One possible way to fix this issue is to ignore email.header.Header.encode() on Message values in email._policybase_Compat32._fold() if they come from BytesGenerator and not Generator. We can do this by encoding the value to bytes in email.generator.BytesGenerator._write_headers()

Do you think its a fix? Or even values from ByteGenerators should be formatted using Header.encode()? In that case, I'd look into how it can be done.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18886>
_______________________________________


More information about the Python-bugs-list mailing list