[Mailman-Developers] [ mailman-Patches-510415 ] Improve MIME header handling

noreply@sourceforge.net noreply@sourceforge.net
Wed, 19 Jun 2002 11:17:01 -0700


Patches item #510415, was opened at 2002-01-30 00:19
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=300103&aid=510415&group_id=103

Category: Pipermail
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin v. Löwis (loewis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve MIME header handling

Initial Comment:
This patch fixes a number of problems for non-English
archives. In particular:

- it normalizes the encoding name (converting to
lower-case, splitting of potential \r characters, and
splitting off potential quotes)

- if the article and the header encoding differ, it tries 
to preserve the decoded header as a Unicode string,
instead of immediately falling back to the MIME-encoded
one (if the encoding is not known to Python it will
still fall back)

- if a Unicode string needs to be formatted, it uses
character references for all non-ASCII characters.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-06-19 20:17

Message:
Logged In: YES 
user_id=21627

The patch applies to version 2.13 of HyperArch.py, just as
the patch header says.

It was current for the mailman CVS at the time of its
creation. It has been applied to the mailman CVS by now (as
2.14), so
it is now useless. Feel free to back-port it to mailman
2.0.8 if you want.

----------------------------------------------------------------------

Comment By: Karsten Dambekalns (k-fish)
Date: 2002-06-19 18:55

Message:
Logged In: YES 
user_id=105527

I tried to apply this patch to mailman 2.0.8 and 2.0.9, and
both times the patch didn't apply cleanly. In fact 6 out of
10 hunks failed here. Any hints on that? For which version
was the patch created?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-02 07:40

Message:
Logged In: YES 
user_id=21627

The second version of this patch expects and ignores
LookupError from unicode(), and it decodes the subjects from
the next and previous articles.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=300103&aid=510415&group_id=103