R. David Murray added the comment:

If all you are changing is headers (and you con't change the CTE), then when 
you use BytesGenerator to re-serialize the message, it is supposed to preserve 
the existing CTE/payload.  (Whether or not you call get_payload, regardless of 
arguments, does not matter; get_payload does not modify the Message 
object...though set_payload does, of course).

If you have a case where the payload is being re-encoded even though you have 
not changed the content-type or content-transfer-encoding headers or the 
payload, then that is a bug.

Of course, if you use just Generator (which is what str uses), the output 
message must be in ASCII, so in that case it does indeed transcode 8bit 
payloads to base64.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to