mailtextbody

tool to return the body of an email message

Install

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

mailtextbody

tool to return the body of an email message

Mailtextbody reads a complete email message on stdin and returns the body on stdout. Technically speaking, it returns the first decoded text/plain MIME part of any (however nested) MIME message or just the body of a non-MIME message otherwise. Mailtextbody can easily be included in other tools using pipes.