Mutt is a fantastic terminal based email client that has all of the capabilities of its GUI based equivalents. One thing I always found annoying was being unable to read emails that have been sent as HTML only (ugh). Well, here is a nice fix that let’s you use a terminal based web browser to view the emails as soon as you load them, in mutt, with as much formatting as possible maintained.
- First close Mutt down.
- Make sure you have the terminal based browser lynx installed (e.g apt-get install lynx)
- Create (or edit) a file in your home directory called .mailcap and add the following lines:
text/html; lynx %s; nametemplate=%s.html
text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput - Add the following to your .muttrc file:
auto_view text/html - Restart Mutt
Now you can start enjoying your HTML email from within Mutt.