Menu

#112 avoid double prefixes for mimed subjects

Mailman 2.0.x
closed-wont-fix
nobody
5
2002-08-09
2002-03-10
No

this patch checks subject: line for being mime-encoded
with charset, and if this the case, decodes is for the
purpose of prefix checking.

this avoids replies with subject
encoded( Re: [listname] old subject.. )

to be converted to
[listname] encoded( Re: [listname] old subject...)

ad infinitum.

patch originally developed by vaget at vaget dot org
and beautified by me.

Discussion

  • Dmitry Kohmanyuk

    subject-mime-encoding-prefix-check-patch

     
  • Mikhail Zabaluev

    Logged In: YES
    user_id=313104

    This patch does the job, although EncWord functionality is
    somewhat moot: it assumes that any string is encoded using
    at most one non-ASCII charset. Which _might_ be wrong.
    Decoding into a Unicode string with regard to charsets would
    be cleaner, but OTOH it would require codec support and
    hence would bring additional complexity and trigger more
    untrampled bugs.

     
  • Barry Warsaw

    Barry Warsaw - 2002-08-09

    Logged In: YES
    user_id=12800

    Since this patch is against MM2.0, I'm going to reject it.
    Security patches only now for MM2.0.x.

    On a related note, CookHeaders.py in MM2.1 should have
    enough smarts to avoid adding the prefix to encoded headers,
    although it could miss prefixes which contain spaces and
    where each word is in a separate encoded chunk. I think in
    practice this is unlikely.

     
  • Barry Warsaw

    Barry Warsaw - 2002-08-09
    • status: open --> closed-wont-fix
     

Log in to post a comment.