mailman raises exception if passed message not contains text/plain message part
Original LP Author: Robert Niederreiter , LP Link: https://bugs.launchpad.net/bugs/1096066
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/approved.py' --- src/mailman/rules/approved.py 2012-07-02 20:08:58 +0000 +++ src/mailman/rules/approved.py 2013-01-04 13:31:09 +0000 @@ -73,6 +73,8 @@ stripped = False for part in typed_subpart_iterator(msg, 'text', 'plain'): break
-
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