Mangled "Re:" in i18n subject header

Bug #265773 reported by Phd-users
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

Hello!

Look, here is the subject from a mailman-managed
mailing list:

Subject: [Bug]
=?koi8-r?B?UmU6IFtCdWddIFJlWzJdOiBbQnVnXSBSZTogW0J1Z10gUmU6IFtCdQ==?=
 =?koi8-r?B?Z10g8NLPxMHF1NPRINPMwdfRztPLycog28vBxg==?=

Let me decode it:

import sys, email.Header
print email.Header.decode_header(sys.stdin.read())

[('Subject: [Bug]', None), ('Re: [Bug] Re[2]: [Bug] Re:
[Bug] Re: [Bug] \xf0\xd2\xcf\xc4\xc1\xc5\xd4\xd3\xd1
\xd3\xcc\xc1\xd7\xd1\xce\xd3\xcb\xc9\xca
\xdb\xcb\xc1\xc6', 'koi8-r')]

Look how many "Re:"s re there!

The problem arise when Mailman adds list tag (in this
case [Bug]) to an *encoded* header. Mailman must decode
the header and check for "Re:" and list tag in the
decoded header.

All mailing lists that I know are guilty with the bug.
Let Mailman be the first that fixes it! Thank you.

[http://sourceforge.net/tracker/index.php?func=detail&aid=637747&group_id=103&atid=100103]

Revision history for this message
Barry Warsaw (barry) wrote :

Oleg, have you tried this with MM2.1? I think there's code
in there that tries to decode the header first before
searching for the prefix. I'm not surprised MM2.0 doesn't
do the right thing, but MM2.1 should.

Revision history for this message
Phd-users (phd-users) wrote :

Mailman 2.1 is still in beta. I don't dare to recommend it
to sysadmins - these are not my mailing lists, nor my hosts.
But it's good to know there is a fix. I'll give it a try
when you release 2.1-final.

Revision history for this message
Barry Warsaw (barry) wrote :

I'm closing this because I believe it /is/ fixed in MM2.1
and it won't be fixed in MM2.0.x.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.