mailman raises exception if passed message not contains text/plain message part

Bug #1096066 reported by Robert Niederreiter
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman

Bug Description

If message sent to mailman not contains a text/plain message part (i.e. only text/html), an error is raised and the message gets swallowed.

I fixed this this way in my setup:

=== modified file 'src/mailman/rules/'
--- src/mailman/rules/ 2012-07-02 20:08:58 +0000
+++ src/mailman/rules/ 2013-01-04 13:31:09 +0000
@@ -73,6 +73,8 @@
             stripped = False
             for part in typed_subpart_iterator(msg, 'text', 'plain'):
+ if not part:
+ return False
             payload = part.get_payload(decode=True)
             if payload is not None:
                 charset = part.get_content_charset('us-ascii')

regards, robert

Tags: mailman3
Barry Warsaw (barry)
tags: added: mailman3
Revision history for this message
Abhilash Raj (raj-abhilash1) wrote :

This bug has been moved to the new gitlab repo here:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.