On 05/15/2014 01:48 AM, Sylvain Viart wrote: > > What'd be the trouble if I completely remove attachment from the message?
None if you do it correctly. Assuming msg is a multipart message object with 3 subparts and you want to delete the second of the 3 parts. parts = msg.get_payload() # parts is a list of 3 message objects which are the sub-parts. # delete the second. del parts[1] msg.set_payload(parts) -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org