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

noreply@sourceforge.net noreply@sourceforge.net
Wed, 19 Jun 2002 15:21:18 -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: Karsten Dambekalns (k-fish)
Date: 2002-06-20 00:21

Message:
Logged In: YES 
user_id=105527

Ok, I could have had a look at the patch header more
closely, sorry. Thanks for your answer though, I wasn't
aware of 2.14 being existent at all, since 2.0.9 seems to be
the latest version being officially avilable...

Anyway, my problem with german Umlauts being screwed up was
solved by running arch manually, somehow the Umlauts seems
to be only messed up when the archiver is run automatically...

And rather than backporting (especially now, since my
special problem was solved so easily ;) I would love to see
a newer version of mailman being released officially...

Thanks again for you answer!

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

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