Archivemail is a utility for archiving and compressing old mail on your server so you can clean up space on your IMAP server without permanently deleting the messages (unless you want to). The messages are put into an mbox file that can be put on a CD/DVD or another computer. If users need to get into the archives, they can use an email client, or a program like mboxview to access their archived mail.
Installation
Download the source tarbal and unpack it:
Install the software:
python setup.py install
Usage
The archivemail manpage (also installed with the binaries) details all the various execution options. Some useful flags when running it are:
-n, --dry-run