mboxpurge is a Perl script for purging old
messages out of mbox-style mailboxes. It can also
archive (move old messages) and extract (copy old
messages) into a new mailbox. Age can be specified
in ISO format (YYYY-MM-DD) or in hours, days, months, or
years.