Comment 7 for bug 265847

Revision history for this message
Avalon-users (avalon-users) wrote :

Applied without problems, but gave me the following error when running
bin/arch (not on the mbox I submitted, though):

Traceback (most recent call last):
  File "bin/arch", line 187, in ?
    main()
  File "bin/arch", line 175, in main
    archiver.processUnixMailbox(fp, start, end)
  File "/home/mailman/Mailman/Archiver/pipermail.py", line 544,
in
processUnixMailbox
    m = mbox.next()
  File "/usr/lib/python2.2/mailbox.py", line 33, in next
    return self.factory(_Subfile(self.fp, start, stop))
  File "/home/mailman/Mailman/Mailbox.py", line 79, in scrubber
    return mailbox.scrub(msg)
  File "/home/mailman/Mailman/Mailbox.py", line 99, in scrub
    return self._scrubber(self._mlist, msg)
  File "/home/mailman/Mailman/Handlers/Scrubber.py", line 145,
in process
    cs = csre.search(part['content-type'])
TypeError: expected string or buffer

The offending message had no "Content-Type:" field in its
header. (It was,
of course, produced by a Microsoft product... ;)

Some issues from my earlier subimtted example that still needs to be
fixed:
1. The attachment file name still becomes ".dot", not
".doc" as it should
have been. Also, the reported size is wrong (larger) than the actual
file.
2. "The attachment was scrubbed" part in the archive web page
is still sort
of "attached" to the message itself, e.g. to the email signature
of the user
that posted the message.