Menu

#78 Avoid multiple prefixes in Subject

Mailman 2.0.x
open
nobody
None
1
2002-11-19
2001-05-08
No

Mailman often erroneously add more than one "list-prefix" to the
Subject line if the Subject contains non-ASCII characters.

Before adding a prefix Mailman tries to see if there already is a prefix
(for example in the case of a reply to an earlier post to the same list).
But Mailman is not "aware" that the prefix can be buried in the
MIME-encoded part of the line.

Therefore Mailman can add a 2nd prefix.
The receiving mail client sees two prefixes after decoding the MIME stuff.
In the next reply to the list we can get three prefixes, and so on ....
And example Subject line can look like:

Subject: Re: [Test] Re: [Test] Re: [Test] räkmsörgĺs

The solution is to:

- MIME-decode the subject
- add list-name-prefix (if it isn't already there)
- MIME-reencode the subject

I have reported this solution earlier to "mailman-developers", see:

http://mail.python.org/pipermail/mailman-developers/2001-April/004007.html

The problems I describe here has been reported as bug #230400:

[ #230400 ] German Umlaute mess up subject-line and body

I attach my patch below.
I have used it successfully on 2.0.1, and the file patched hasn't changed
from 2.0.1 to 2.0.5.

/Johan Holmberg

Discussion

  • Johan Holmberg

    Johan Holmberg - 2001-05-08

    patch to CookHeaders.py

     
  • Dmitry Kohmanyuk

    Logged In: YES
    user_id=15044

    this patch does not seem to work with koi8-r encoding; I am
    submitting another which was done by vaget at vaget.org and
    then beautified by me.

     
  • Dmitry Kohmanyuk

    Logged In: YES
    user_id=15044

    the patch I have mentioned is available with bug 528031.
    there is another patch in bug 498766 which can fix the same
    problem, but it seems to be for 2.1 version.

     
  • Barry Warsaw

    Barry Warsaw - 2002-08-23
    • milestone: --> Mailman 2.0.x
     
  • Barry Warsaw

    Barry Warsaw - 2002-11-19
    • priority: 5 --> 1
     

Log in to post a comment.

MongoDB Logo MongoDB