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