Mail archiver is a simple tool for archiving email stored in Maildir directories.
You will need archiver.py and jwzthreading.py.
You probably want to run it from a cronjob.