Mutt and Lynx

So, in my time with mutt, I have grown to have a disdain for people that send HTML only email.  And surprisingly, this happens alot!  So, instead of trying to change the world, I’ve decided to just use mutt and lynx to my advantage and call it a day.  Thanks to one of my co-workers for showing me how to do this.

At the end of your ~/.mailcap file, add the following

text/html; lynx -dump -width=78 -nolist %s | sed ‘s/^   //’; copiousoutput; needsterminal; nametemplate=%s.html

Then, in the ~/.muttrc add

auto_view text/x-vcard text/html text/enriched

And restart mutt.  This will use lynx to render the email.  You can substitute lynx for any text-based html browser you’d like.

This entry was posted in Linux and tagged , . Bookmark the permalink.
  • Olivier

    Awesome! Thanks for the great tip.

  • thanks, but this woul dhave been 100% more awesome if the text you posted didn’t have crap like “smartquotes” in what should be command line text.

  • Sorry, this was an old post that seems to have been munged when I updated themes. I’ve moved the config snippets into gist which should be better about not having smartquotes.