grepmail

search mailboxes for mail matching an expression

Install

All systems
curl cmd.cat/grepmail.sh
Debian Debian
apt-get install grepmail
Ubuntu
apt-get install grepmail
image/svg+xml Kali Linux
apt-get install grepmail
Fedora
dnf install grepmail
Windows (WSL2)
sudo apt-get update sudo apt-get install grepmail
Raspbian
apt-get install grepmail

grepmail

search mailboxes for mail matching an expression

Grepmail looks for mail messages containing a pattern, and prints the resulting messages. Usage is very similar to grep. It can handle compressed mailbox files, and can search the header or body of emails. It also supports searches constrained by date and size.