Is there a simple way to convert a MIMENonMultipart message parsed into a MIMEMultipart message?
My goal is to take a message from the TouchTerm iPhone App with an openssh public key that has been mangled by intervening mailers, and convert it into a multipart message with the original text in one part and the cleaned up key as an application/base64 part that can be easily saved by a non- technical user. I have written a routine that does this by creating a new multipart container, copying all (well almost all) the headers into the new container then attaching the original body and the clean key, but I think there ought to be a neater way. Thanks. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792 There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him. -- Robert Heinlein _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor