I need to extract some emails from a 600MB .mbox file, which is >99% spam. Its a dspam quarantine box that's gone unpruned and now has some emails I need to remove from the quarantine, and the whole mbox file can be deleted afterwards.
Any suggestions? This is on a server to which I have SSH root access, so pretty much any non-GUI tools are open to me.
I have tools that will handle it in principle, just not now its that size (eg the dpsam web UI tools would be OK if I could just remove everything older than the last couple of weeks first). So an mbox pruning tool would be fine too.