yahoo wrote: > >How do I filter out the "Part 1.2" leftovers? These are ASCII and seem to >be the sig divider, and the sig contents. They are left on messages >relieved of other attachments.
If the final message delivered from the list is a multipart message with just two parts and those parts are a text/plain message body and the text/plain msg_footer, this is a bug which I recently discovered. I have attached a patch which will fix this. This will be fixed in Mailman 2.1.15. If the final message has any other structure, e.g. a text/html body and the text/plain msg_footer, see the FAQ at <http://wiki.list.org/x/84A9>. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--- f:/test-mailman-2.1/Mailman/Handlers/MimeDel.py 2010-05-12 15:23:16.000000000 -0700 +++ f:/test-mailman/Mailman/Handlers/MimeDel.py 2011-01-09 21:53:25.937500000 -0800 @@ -103,6 +103,11 @@ # Now perhaps convert all text/html to text/plain if mlist.convert_html_to_plaintext and mm_cfg.HTML_TO_PLAIN_TEXT_COMMAND: changedp += to_plaintext(msg) + # If we're left with a multipart message with only one sub-part, recast + # the message to just the sub-part. + if msg.is_multipart() and len(msg.get_payload()) == 1: + reset_payload(msg, msg.get_payload(0)) + changedp = 1 # If we're left with only two parts, an empty body and one attachment, # recast the message to one of just that part if msg.is_multipart() and len(msg.get_payload()) == 2:
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://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: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org