tool for archiving emails (mbox)
I'm on a bunch of mailing lists, so I get a lot of messages, and I like to regularly move messages from my mbox files to keep the number of messages in each below about 1000. I've looked into archivemail, but it doesn't seem to be able to just archive a certain number of the oldest messages in the mailbox. It'll archive by a certain date, but that's not what I want. I want a tool that will check if the number of messages is over 1000, and if so, delete about 200-250 oldest messages in the box. So, it's not by date, but completely by number of messages.
Is there a tool for this already? Should I just write my own script to do this?