pipermail date handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
New
|
High
|
Unassigned |
Bug Description
I moved my first list to mailman 2.1 and tried to re-generate the pipermail
archives (just, ya know, to see how it'd work :), and got the following
traceback. This is a list that's been around for a long time (archives back
to 1995), and the .mbox file was generated from a majordomo/hypermail
archive when it was moved to mailman 2.0 a couple of years ago.
Here's a ls -l of the .mbox file:
-rw-rw-r-- 1 mailman mailman 17741891 Jan 1 10:36 bryans-list.mbox
Here's the traceback:
Updating HTML for article 467
Updating HTML for article 468
Updating HTML for article 469
Updating HTML for article 473
Updating HTML for article 472
Pickling archive state into
/home/mailman-
Traceback (most recent call last):
File "bin/arch", line 187, in ?
main()
File "bin/arch", line 175, in main
archiver.
File "/home/
544, in processUnixMailbox
m = mbox.next()
File "/usr/local/
return self.factory(
File "/home/
scrubber
return mailbox.scrub(msg)
File "/home/
return self._scrubber(
File "/home/
132, in process
dir = calculate_
File "/home/
in calculate_
datedir = safe_strftime(fmt, now)
File "/home/
in safe_strftime
return time.strftime(fmt, floatsecs)
TypeError: argument must be 9-item sequence, not None
I'm guessing it's a header problem in one of the messages, but I'm not sure
what.
Thanks,
Bryan
[http://
After some investigation, the following (admittedly invalid) date headers
cause tracebacks similar to the above. After reformatting them I'm able to
generate the archive.
Date: 25 Aug 95 18.00
Date: Thursday, 30 October 1997 3:02pm PT
Date: Mon, 29 Nov 1999 Pacific Standard Time
Note that these messages *didn't* cause bin/arch|pipermail in mailman
2.0.x to fail, though it probably didn't parse them properly. Perhaps
trapping the error and/or skipping these messages might be more useful?
It also appears that bin/arch is throwing all messages with dates it can't lists.samurai. com/pipermail/ bryans- list/2003- January/ thread. html .
figure out (after the above were removed) into the current day. An example
can be seen at
http://
I'm unsure if there's any way to better handle this, but just wanted to
note it - I can create a separate bug report if it's important.
Thanks,
Bryan