[Mailman-Developers] Re: [PATCH] Fix endless prefix adding with q-p/base64 Subject lines

Barry A. Warsaw barry@zope.com
Mon, 8 Apr 2002 00:58:22 -0400


>>>>> "BG" == Ben Gertzfield <che@debian.org> writes:

    BG> Barry, this patch to CookHeaders.py fixes this issue of
    BG> endless prefix string adding if the Subject line gets encoded,
    BG> by decoding the Subject line before searching for the prefix.
    BG> It encodes the new prefix if needed as a separate chunk in the
    BG> new Subject header.  This will allow for Japanese, French,
    BG> whatever prefix strings.

Ok, but there's a bug in email.Header.decode_header when the here
string has no encoded parts.  It returns the original header
(str-ified), but it should still return a list of tuples.

I'll fix that.
-Barry