[volunteers] (forw) [Mailman-owner] Auto-discard notification

Rick Moen rick at linuxmafia.com
Sat Apr 14 14:06:12 PDT 2007


I wrote:

> Hmm, the archive-builder is harfing on some character enconding in the
> mbox -- October 2000, right around posting #3728.  Drat.  I'm going to
> have to track that down, and edit _that_ out manually, too.  Grrr.

I've now found and remove all of the flush-left "From " references that
had prevented the mbox file from being parsed correctly, but not yet the
character-encoding gotcha that's still crashing the archiver.  I have
the archive rebuilt up to October 2000, at least.  That much is back
online.  (We haven't actually lost any list traffic, except the spammer
posts, I should reiterate.)

The Python traceback is as follows:

[...]
Updating HTML for article 3704
Updating HTML for article 3705
Updating HTML for article 3706
Updating HTML for article 3709
Updating HTML for article 3707
Pickling archive state into
/var/local/mailman/archives/private/svlug/pipermail.pck
Traceback (most recent call last):
  File "bin/arch", line 200, in ?
    main()
  File "bin/arch", line 188, in main
    archiver.processUnixMailbox(fp, start, end)
  File "/var/local/mailman/Mailman/Archiver/pipermail.py", line 557, in
processUnixMailbox
    m = mbox.next()
  File "/usr/lib/python2.2/mailbox.py", line 34, in next
    return self.factory(_Subfile(self.fp, start, stop))
  File "/var/local/mailman/Mailman/Mailbox.py", line 86, in scrubber
    msg = _safeparser(fp)
  File "/var/local/mailman/Mailman/Mailbox.py", line 41, in _safeparser
    return email.message_from_file(fp, Message)
  File "/var/local/mailman/pythonlib/email/__init__.py", line 63, in
message_from_file
    return Parser(_class, strict=strict).parse(fp)
  File "/var/local/mailman/pythonlib/email/Parser.py", line 64, in parse
    self._parsebody(root, fp, firstbodyline)
  File "/var/local/mailman/pythonlib/email/Parser.py", line 146, in
_parsebody
    boundary = container.get_boundary()
  File "/var/local/mailman/pythonlib/email/Message.py", line 749, in
get_boundary
    return unicode(boundary[2], charset).encode('us-ascii')
LookupError: unknown encoding




More information about the volunteers mailing list