[Mailman-Developers] German Umlauts in pipermail

Jan-Benedict Glaw jbglaw@lug-owl.de
Thu, 4 Oct 2001 13:54:41 +0200


Hi!

I tried to get german Umlauts, MIME-embedded in mails, to work
properly, and failed:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D8<-------------------------------
jbglaw@min:~/debian-pkg$ diff -u mailman-2.0.6/Mailman/Archiver/HyperArch.p=
y mailman-2.0.6-jbglaw/Mailman/Archiver/HyperArch.py                       =
        --- mailman-2.0.6/Mailman/Archiver/HyperArch.py Mon Nov 13 22:50:05=
 2000
+++ mailman-2.0.6-jbglaw/Mailman/Archiver/HyperArch.py  Mon Oct  1 16:24:38=
 2001
@@ -57,10 +57,28 @@
=20
=20
=20
 def html_quote(s):
-    repls =3D ( ('&', '&amp;'),
-             ("<", '&lt;'),
-             (">", '&gt;'),
-             ('"', '&quot;'))
+    repls =3D ( ( '&',   '&amp;'         ),
+             ( '<',    '&lt;'          ),
+             ( '>',    '&gt;'          ),
+             ( '=3D20',  ' '             ),
+             ( '=3D3D',  '=3D'             ),
+             ( '=3DE4',  '&auml;'        ),
+             ( '=3DF6',  '&ouml;'        ),
+             ( '=3DFC',  '&uuml;'        ),
+             ( '=3DDF',  '&szlig;'       ),
+             ( '=3DC4',  '&Auml;'        ),
+             ( '=3DF6',  '&Ouml;'        ),
+             ( '=3DDC',  '&Uuml;'        ),
+             ( '=3DE9',  '&eacute;'      ),
+             ( '=E4',    '&auml;'        ),
+             ( '=F6',    '&ouml;'        ),
+             ( '=FC',    '&uuml;'        ),
+             ( '=DF',    '&szlig;'       ),
+             ( '=C4',    '&Auml;'        ),
+             ( '=D6',    '&Ouml;'        ),
+             ( '=DC',    '&Uuml;'        ),
+             ( '=E9',    '&eacute;'      ),
+             ( '"',    '&quot;'        ))
     for thing, repl in repls:
        s =3D string.replace(s, thing, repl)
     return s
---------------------------------------------->8=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D

After I applied the above patch (and I really have absolutely
no clue about python...), mailman archived all mails exactly=20
as it did before... What do I miss?

MfG, JBG

--=20
Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481