[Mailman-Developers] Fix for Postfix bounces

Barry A. Warsaw barry@zope.com
Mon, 5 Nov 2001 23:49:34 -0500


>>>>> "B" == Bob  <bob@nleaudio.com> writes:

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

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

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

    B> Does this look ok?

Of hand, yes, although I don't intend to add this fix to 2.0.7.
However, if you have a sample bounce message you can send me, please
do.  I'll add it to the 2.1 test suite.

Thanks,
-Barry