Skip to main content.
Index | Support | Documentation | FAQ

How Do I ... Automatically display HTML mail with mutt?

In case anyone is interested the below few lines added to you mailer startup file (assuming you are using mutt) will automatically handle any mail messages sent in html.

More and more people are (sorry but) being downright rude and sending out mail that is in a format that most of you can't read easily.

Add these three lines to your startup file ($HOME/.muttrc)

set implicit_autoview   # These three handle automatically calling
set mailcap_sanitize    # lynx for text/html mail. Need to add entry
auto_view text/html     # to $HOME/.mailcap for text/html

Add these lines to $HOME/.mailcap. These also allow you to view Microsoft Word documents on your character based screen if you are ever sent those.

OpenServer 5.0.7

application/msword; /usr/local/bin/catdoc %s | less 
applica/msword; /usr/local/bin/catdoc %s | less 
text/html; /usr/bin/lynx -dump -force_html %s; copiousoutput; nametemplate=%s.html
text/htm; /usr/bin/lynx -dump -force_html %s; copiousoutput; nametemplate=%s.html

OpenServer 5.0.6 and earlier

application/msword; /usr/local/bin/catdoc %s | less 
applica/msword; /usr/local/bin/catdoc %s | less 
text/html; /usr/local/bin/lynx -dump -force_html %s; copiousoutput; nametemplate=%s.html
text/htm; /usr/local/bin/lynx -dump -force_html %s; copiousoutput; nametemplate=%s.html