Mutt is a fast, flexible, console-based (meaning remote access is easy) email tool. It has many handlers and mail management capabilities with built-in cryptography and signing capabilities. It supports scoring, multiple mailbox formats, and many handy accelerators.
Usage:
Select all messages dated July: T~d 1/7-31/7
To execute a command on all tagged mesages (e.g., delete using d), preceed it with ';'.