Updated script for checking and fixing mbox files.
Mailman 2.1 has a cleanarch script for checking mbox files for unescaped
From
lines in message bodies and optionally fixing them. For some
time, there has been a stand-alone python3 version of this script at
https://www.msapiro.net/scripts/cleanarch3 (mirrored at
https://fog.ccsf.edu/~msapiro/scripts/cleanarch3). I have just updated
this script to check and optionally fix bad Date: headers.
I have also added it at https://gitlab.com/mailman/hyperkitty/-/blob/master/hyperkitty/contrib/clean... for the next release.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Fri, Jan 20, 2023 at 5:29 AM Mark Sapiro <mark@msapiro.net> wrote:
Mailman 2.1 has a cleanarch script for checking mbox files for unescaped
From
lines in message bodies and optionally fixing them. For some time, there has been a stand-alone python3 version of this script at https://www.msapiro.net/scripts/cleanarch3 (mirrored at https://fog.ccsf.edu/~msapiro/scripts/cleanarch3). I have just updated this script to check and optionally fix bad Date: headers.I have also added it at
https://gitlab.com/mailman/hyperkitty/-/blob/master/hyperkitty/contrib/clean... for the next release.
At what point does an MM3 List Admin require this script? I am unable to figure that out :-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
On 1/19/23 23:47, Odhiambo Washington wrote:
At what point does an MM3 List Admin require this script? I am unable to figure that out :-)
The script is useful for finding and cleaning up issues in mbox files to be used as input to hyperkitty_import. The normal flow would be to process the mbox with cleanarch3 to fix any unescaped From lines and bad Date: headers and then check the mbox with the ck_hk_import script to identify any messages in the mbox that might throw uncaught exceptions in hyperkitty_import and manually fix or remove those, and finally run hyperkitty_import.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro writes:
I have also added [the updated cleanarch3] at https://gitlab.com/mailman/hyperkitty/-/blob/master/hyperkitty/contrib/clean... for the next release.
Thanks Mark!
participants (3)
-
Mark Sapiro
-
Odhiambo Washington
-
Stephen J. Turnbull