Bugs item #1513913, was opened at 2006-06-28 06:51 Message generated for change (Settings changed) made by bwarsaw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513913&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.5 >Status: Closed >Resolution: Rejected Priority: 5 Submitted By: Albert Strasheim (fullung2) Assigned to: Barry A. Warsaw (bwarsaw) Summary: mimetools message's To field can't be changed Initial Comment: Steps to reproduce: >>> from email.MIMEText import MIMEText >>> msg = MIMEText('') >>> msg['To'] = '[EMAIL PROTECTED]' >>> msg['To'] '[EMAIL PROTECTED]' >>> msg['To'] = '[EMAIL PROTECTED]' >>> msg['To'] '[EMAIL PROTECTED]' (should be @baz.com?) Same problem exists in Python 2.4.3 and Python 2.5b1. ---------------------------------------------------------------------- >Comment By: Barry A. Warsaw (bwarsaw) Date: 2006-07-27 22:29 Message: Logged In: YES user_id=12800 Remember that you can add multiple headers to any message, so in you're example you've added two To headers. Also remember that the dictionary interface will return one of those multiple headers, but not all of them. Use msg.get_all('to') to see them all or del msg['to'] to delete them all. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1513913&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com