MIMEText breaking the rules?

Tim Roberts timr at probo.com
Fri Aug 3 08:39:00 CEST 2007

Dale Strickland-Clark <dale at riverhall.nospam.co.uk> wrote:
>The email module's mimetext handling isn't what you might expect from
>something that appears to behave like a dictionary.
>Having apparently REPLACED my recipient, what I've ended up with is both of

This behavior is documented in Message.Message, from which MIMEText
eventually inherits.  If you want to start over, delete the item:

  del Msg["To"]

I would have to say that the existing behavior is more intuitive for an
email object.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the Python-list mailing list