Gents and ladies,

on the freedesktop.org site we encountered a lot of troubles with moderation
queues.

Some emails got stuck due to Logger.py dying.  This is with 2.1.5.  I
verified with a trunk version and spotted the problem has not been
corrected.

Find attached a suggested patch which I think should solve this issue.

I find more unicode() calls in the Mailman 2.1.x source tree that do not
seem to guard against encoding failing or forget ValueError.  Perhaps these
also need either a(n) (additional) safeguard or 'replace' addition?

To note:
Mailman/Archiver/HyperArch.py:  charset = unicode(charset[2], charset[0])
Mailman/Archiver/HyperArch.py:  body = unicode(body, charset)
Mailman/Utils.py:            u = unicode(s, charset)

Awaiting your feedback, first time I delved into the Mailman sources. :)

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://ashemedai.deviantart.com/
http://www.tendra.org/   | http://www.in-nomine.org/
Seize from every moment its unique novelty and do not prepare your joys...
--- Mailman/Logging/Logger.py.orig      2005-07-04 19:25:42.000000000 +0200
+++ Mailman/Logging/Logger.py   2005-07-04 20:00:38.000000000 +0200
@@ -85,7 +85,7 @@
 
     def write(self, msg):
         if isinstance(msg, StringType):
-            msg = unicode(msg, self.__encoding)
+            msg = unicode(msg, self.__encoding, 'replace')
         f = self.__get_f()
         try:
             f.write(msg)
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to