bin/arch can throw ValueError on bad Date: headers

Bug #1555798 reported by Mark Sapiro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Low
Mark Sapiro

Bug Description

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.

Related branches

Mark Sapiro (msapiro)
Changed in mailman:
status: Triaged → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers