Mutt

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, save
using s, etc), precede it with a semicolon (';'). For example, to save
all messages in the current folder to another folder:

T.*<ENTER>
;s~/saved-messages<ENTER>

This can be useful as a quick mechanism to save from GNU/Linux
“From” mail folder format to a Maildir folder format.