Eric D. Schabell: Display and read HTML mail with mutt

Friday, August 7, 2009

Display and read HTML mail with mutt

I have lately been running into more people out there who seem to like HTML mail, which did not by default display all that well. Here is how to get mutt to automatically display HTML e-mail in-line:

# In your $HOME you should have (or create one) a .mailcap file,
# add these lines for displaying HTML inline.
text/html;      links %s; nametemplate=%s.html
text/html;      links -dump %s; nametemplate=%s.html; copiousoutput

# Then you need to turn on the automagic in mutt to actually
# display the HTML e-mail by adding this to your $HOME/.muttrc
# file.
auto_view text/html