[Bug 1555798] [NEW] bin/arch can throw ValueError on bad Date: headers

Mark Sapiro mark at msapiro.net
Thu Mar 10 15:13:53 EST 2016

Public bug reported:

Various ValueError exceptions can be thrown when trying to archive a
message with a Date: header that's off by multiple centuries. This does
not normally occur in Mailman's archiving of posts because ArchRunner
has code to fix bogus dates so archived messages and messages in the
cumulative mbox normally have good Date: headers. However, no such
checks or guarantees are made on a mbox file imported from elsewhere.

There is a script at https://www.msapiro.net/scripts/cleanarch2
(mirrored at http://fog.ccsf.edu/~msapiro/scripts/cleanarch2) which is
the standard bin/cleanarch modified to also check Date: headers and
replace them with the date from From_ if they differ by more than
mm_cfg.ARCHIVER_ALLOWABLE_SANE_DATE_SKEW (default = 15 days).

This script may help, but the code in the _set_date method in
Mailman/Archiver/pipermail.py should check for wildly out of range dates
and do something reasonable with them.

** Affects: mailman
     Importance: Low
     Assignee: Mark Sapiro (msapiro)
         Status: Triaged

You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.

  bin/arch can throw ValueError on bad Date: headers

To manage notifications about this bug go to:

More information about the Mailman-coders mailing list