[Mailman-Users] Upgrade to 2.0rc2 destroyed some archives

Barry A. Warsaw barry at digicool.com
Mon Nov 13 23:35:05 CET 2000


>>>>> "GC" == Greg Connor <gconnor at nekodojo.org> writes:

    GC> Nov 11 17:18:34 2000 qrunner(5155): Traceback (innermost
    GC> last): Nov 11 17:18:34 2000 qrunner(5155): File
    GC> "/home/mailman/Mailman/Archiver/Archiver.py", line 221, i n
    GC> ArchiveMail Nov 11 17:18:34 2000 qrunner(5155):
    GC> h.processUnixMailbox(f, HyperArch.Article) Nov 11 17:18:34
    GC> 2000 qrunner(5155): File
    GC> "/home/mailman/Mailman/Archiver/pipermail.py", line 521, in
    GC> processUnixMailbox Nov 11 17:18:34 2000 qrunner(5155): a =
    GC> articleClass(m, self.sequence) Nov 11 17:18:34 2000
    GC> qrunner(5155): File
    GC> "/home/mailman/Mailman/Archiver/HyperArch.py", line 224, in
    GC> __init__ Nov 11 17:18:34 2000 qrunner(5155): self.cenc =
    GC> string.lower(cenc) Nov 11 17:18:34 2000 qrunner(5155):
    GC> TypeError: read-only character buffer, None Nov 11 17:18:34
    GC> 2000 (5155) CORRUPT ARCHIVE FOR LIST: poly-listowners

Here's the patch for this problem.

-Barry

-------------------- snip snip --------------------
Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- HyperArch.py	2000/11/10 23:46:06	1.45
+++ HyperArch.py	2000/11/13 21:50:05	1.46
@@ -218,8 +218,8 @@
 
         # Snag the content-* headers.  RFC 1521 states that their values are
         # case insensitive.
-        ctype = message.getheader('Content-Type') or "text/plain"
-        cenc = message.getheader('Content-Transfer-Encoding')
+        ctype = message.getheader('Content-Type', 'text/plain')
+        cenc = message.getheader('Content-Transfer-Encoding', '')
         self.ctype = string.lower(ctype)
         self.cenc = string.lower(cenc)
         self.decoded = {}




More information about the Mailman-Users mailing list