[Mailman-Developers] Fix for Postfix bounces

Bob Puff@NLE bob@nleaudio.com
Mon, 05 Nov 2001 00:31:35 -0500

I just did some more digging (after seeing no replies to my messages here), and found this:

My Postfix (022801) returns "multipart/report", not "multipart/mixed" that the bounce handlers
were looking for.  So in fixing this, as well as bringing in some of the code from 2.1, here is
the patch I applied to my Mailman/Bouncers/Postfix.py file for 2.0.6:

[root@list Bouncers]# diff Postfix.py.orig Postfix.py
<     if msg.gettype() <> 'multipart/mixed':
>     if msg.gettype() <> 'multipart/report' and msg.gettype() <> 'multipart/mixed':
< pcre = re.compile(r'\t\t\tthe postfix program$', re.IGNORECASE)
> pcre = re.compile(r'\t\t\tthe\s(bns)?\s*(postfix|keftamail)', re.IGNORECASE)

Does this look ok?