Getting the attachment from a mime message

Thomas Gagne tgagne at ix.netcom.com
Wed Sep 6 13:38:51 EDT 2000


I'm not having much luck figuring out how Mime messages are disected.  Given:

m = mimetools.Message(fp)

m.items() has all the header values, but what message returns a decoded
attachment?  How do you handle a message with multiiple attachments?  How do
you know if you're pointing to an attachment and not just some random place in
the message body?

--
.tom






More information about the Python-list mailing list