[Mailman-Users] Html Archives are not being created

Kent Howard kent at tensa.com
Thu Nov 16 11:15:50 CET 2000

On Thu, Nov 16, 2000 at 01:23:13AM -0800, Kent Howard wrote:
> I also have not been able to get HTML archives to work.  I'm
> experiencing the exact same thing as Pete Collins.  No errors are
> showing up in the logs and the listname.pck and index.htm file
> timestamps are updating when a post is received and the message is
> archived into the mbox file, but no messages ever show up in the HTML
> archives.  I just get the "Currently, there are no archives." message.
> I've tried "bin/arch listname" and it runs now (on rc2) without
> errors, but still no messages show up in the HTML archives.  I'm
> totally out of ideas.  Anyone out there have any?

Argh... looks like since I was using qmail and didn't realize I needed
to use preline to put a mbox From_ line into the message when it is
received.  Therefore, my mbox file isn't really in mbox format.  :(

I just went back and added the preline command to the delivery rules,
dumped the bad mbox files, and now new messages have the proper From_
line.  But when a post is made (or bin/arch is run) the following
error is reported.

Traceback (innermost last):
  File "bin/arch", line 129, in ?
  File "bin/arch", line 118, in main
    archiver.processUnixMailbox(fp, Article)
  File "/home/mailman/Mailman/Archiver/pipermail.py", line 521, in processUnixMailbox
    a = articleClass(m, self.sequence)
  File "/home/mailman/Mailman/Archiver/HyperArch.py", line 224, in __init__
    self.cenc = string.lower(cenc)
TypeError: read-only character buffer, None

...time passes...

Looked through the mailman-users archives and found this patch posted
on the 13th.  And all is working!  YES!!!

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