The mailman server I maintain for a local non-profit is running out of disk space.Time for some spring cleaning. Decided to archive all mailing-list archives older than 2 years. Grabbed the nifty Archivemail python program and installed with 'python setup.py'.
The archivemail is a tool for archiving and compressing old email in mailboxes. It moves messages older than the specified number of days to a separate mbox format mailbox that is compressed with gzip.
Don't forget to back up mailman mbox files before you start pruning mailman archives.
# Prune mbox file
$ cd /var/lib/mailman/archives/private
$ archivemail --days=550 name-of-list/list.mbox
# Wipe and rebuild archive
$ cd /usr/lib/mailman
$ bin/arch --wipe
No comments:
Post a Comment
You can leave a comment here using your Google account, OpenID or as an anonymous user.