MIMEText breaking the rules?
Dale Strickland-Clark
dale at riverhall.nospam.co.uk
Sun Aug 5 20:10:19 EDT 2007
Tim Roberts wrote:
> 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 them.
>
> 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.
Thanks for the info.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk
More information about the Python-list
mailing list