[Mailman-Users] Attachments are unexpectedly re-created.

Mark Sapiro mark at msapiro.net
Wed Mar 3 17:58:57 CET 2010

Masaharu Kawada wrote:
>There is one thing that I wonder, is that if the charset.py is done with
>that patch, what the current digest.mbox exsisted under lists/<listname>
>are supposed to be? Do they need to be deleted or not? My point on
>this is that once the patch is done, is there nothing else to do to fix this

That is correct. Assuming the underlying issue is fixed by the patch,
all you need to do is apply the patch to the Python email library
charset.py module (probably at
/usr/lib/pythonx.x/lib/email/charset.py) and restart Mailman. Then the
next time the digest is triggered, it will be sent with all messages
and no more errors.

If you apply the patch and restart Mailman and the errors continue,
then they are caused by something else.

Note that the patch:

--- Lib/email/charset.py	2009-09-22 08:59:56.000000000 +0900
+++ Lib/email/charset.py.orig	2009-09-22 08:58:36.000000000 +0900
@@ -264,8 +264,7 @@
     def convert(self, s):
         """Convert a string from the input_codec to the
         if self.input_codec != self.output_codec:
-            return unicode(s, self.input_codec, 'replace'
-                     ).encode(self.output_codec, 'replace')
+            return unicode(s,
             return s

is reversed. The '+' is the original code and the '-' is the new code.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list