[issue1525919] email package quoted printable behaviour changed

Thomas Arendsen Hein report at bugs.python.org
Wed May 5 16:59:27 CEST 2010


Thomas Arendsen Hein <thomas at intevation.de> added the comment:

Roger Demetrescu, I filed the issue with "Python 2.4", because the behavior changed somewhere between 2.4.2 and 2.4.3

The updated link to the MoinMoin bug entry is:
http://moinmo.in/MoinMoinBugs/ResetPasswordEmailImproperlyEncoded

The workaround I use to be compatible with <= 2.4.2 and >= 2.4.3 is:

    msg.set_payload('=')
    if msg.as_string().endswith('='):
        text = charset.body_encode(text)
    msg.set_payload(text)

----------

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


More information about the Python-bugs-list mailing list