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. https://bugs.launchpad.net/bugs/1555798 Title: bin/arch can throw ValueError on bad Date: headers To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1555798/+subscriptions _______________________________________________ Mailman-coders mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-coders
