D
Dale Strickland-Clark
The email module's mimetext handling isn't what you might expect from
something that appears to behave like a dictionary.
$ python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: (e-mail address removed)
To: (e-mail address removed)
A message
Having apparently REPLACED my recipient, what I've ended up with is both of
them.
something that appears to behave like a dictionary.
$ python
Python 2.5 (r25:51908, May 25 2007, 16:14:04)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Content-Type: text/plain; charset="us-ascii"from email.mime.text import MIMEText
msg = MIMEText("A message")
msg["To"] = "(e-mail address removed)"
msg["To"] = "(e-mail address removed)"
print msg.as_string()
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: (e-mail address removed)
To: (e-mail address removed)
A message
Having apparently REPLACED my recipient, what I've ended up with is both of
them.