Bugs item #1525919, was opened at 2006-07-20 16:22 Message generated for change (Settings changed) made by thomas_ah You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1525919&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Thomas Arendsen Hein (thomas_ah) >Assigned to: Barry A. Warsaw (bwarsaw) Summary: email package quoted printable behaviour changed Initial Comment: from email.Message import Message from email.Charset import Charset, QP text = "=" msg = Message() charset = Charset("utf-8") charset.header_encoding = QP charset.body_encoding = QP msg.set_charset(charset) msg.set_payload(text) print msg.as_string() Gives MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable =3D With the email package from python2.4.3 and 2.4.4c0 the last '=3D' becomes just '=', so an extra msg.body_encode(text) is needed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1525919&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com