I have a problem with squirrelmail / postfix / virtualmail setup where a particular email account is too full that it now has in its INBOX over 100,000 emails.
The server uses Ubuntu.
There are some also on the Sent folder (about 8000 pages)
The problem I'm having is initially not being able to open the page in squirrelmail. I fixed this by increasing the memory and wait time to 700M and 90 seconds respectively.
As a result, I can open the page, but it is too slow.
My aim is to categorize the emails by date. (2009 emails go to INBOX.2009 folder and so on).
My question is: can someone please tell me how to do this from the CLI ? Moving them a page at a time, from squirrelmail will probably take me a year to complete as just changing the page is taking about 3-5 minutes.
If not CLI, perhaps there are other tools I can use such as mutt?