Grant Edwards added the comment:
Yes, passing the mangle_from value to BytesGenerator seems like the safest fix.
It's unfortunate that BytesGenerator defaults to doing "the wrong thing" in the
absence of a policy argument, but there might be code that depends on it.
I
New submission from Grant Edwards :
SMTP.send_message() does from mangling even when the message's policy
has that disabled. The problem is in the send_messsage() function
shown below:
912 def send_message(self, msg, from_addr=None, to_addrs=None,
New submission from Grant Edwards :
The documentation for str.title() states that the first character in each world
is converted to upper case. That is not correct for recent versions of Python.
The first character in each word is converted to title case. Title and upper
may be the same for