mu

Search and index emails stored in maildir format from the terminal.

brewmacoslinux
Try with needOr install directly
Source

About

Tool for searching e-mail messages stored in the maildir-format

Commands

mumug

Examples

search emails by sender name$ mu find from:john@example.com
find emails with specific subject keywords$ mu find subject:meeting
search emails received in last week$ mu find date:1w..now
index all emails in maildir directory$ mu index --maildir=~/Mail
search emails by multiple criteria at once$ mu find from:alice AND subject:project AND flag:unread