[Mailman-Users] Truncating Archives up to a specific date

Jim Tittsler jwt at onjapan.net
Wed Aug 17 04:18:07 EDT 2016

On 08/17/2016 05:31 AM, Jewel Brueggeman-Makda wrote:
> I am wanting to shrink the archives on my lists. I only want to keep archives
> for the last 2 or 3 years.  Is there a script that will do this?  What are
> the steps to truncating and rebuilding an archive?

Mark Sapiro has written a script that will prune older messages from an
archive, and then rebuild the HTML archives:

You can do it by hand by editing the mbox file for the list (typically
/var/lib/mailman/archives/private/{listname}.mbox/{listname}.mbox) to
remove the messages you no longer want to keep, and then rebuild the
HTML archives with "arch --wipe {listname}" Be careful to maintain file
permissions during the process.

There are more details in the Mailman FAQ:

Jim Tittsler     http://OnJapan.net/      GPG: 0x01159DB6
Python Starship  http://Starship.Python.net/crew/jwt/
Mailman IRC      irc://irc.freenode.net/#mailman

More information about the Mailman-Users mailing list