Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use mutt on Linux. It's been working great for years and years, yet earlier this year it got upgraded and "something" changed.

When I get email where the body of the message is html, and the headers show Content-Type: text/html, I used to be able to type v to view the parts, and then press Enter and the HTML content would be displayed using $HOME/.mailcap and the text browser of my choice. .mailcap has an entry text/html; w3m %s; nametemplate=%s.html.

Now, this no longer works and I see the glory of HTML email in all its massive horror. When I press v, it shows there is only one part and it's text/html. I press Enter and it displays the raw HTML. How do I get this to show formatted HTML with my text browser again?

On the other hand, if the email contains text/multipart and one is HTML, or the HTML is an attachment, it works fine. It's only when the body of the message is HTML that it no longer works. It's like mutt is ignoring .mailcap when the text/html is body, and not an attachment.

share|improve this question
Thanks to kcwu, have an answer. Mutt changed behaviour and started handling things itself without using mailcap. To view the components as before, forcing mutt to use the mailcap file, select the component of the mail you want to view, then press 'm'. It works, I am happy. Thanks. – codebunny Nov 21 '10 at 21:52
up vote 5 down vote accepted

Mutt changed its behavior in 1.5.21. You can find the details here:

Mutt will now display most text/* parts internally via the pager. I'm guessing your system /etc/mailcap has a text/html entry without the "needsterminal" keyword that Mutt is using to render the text.

You can still get the old behavior in the attachment menu by pressing 'm' (view-mailcap) which will always use mailcap for viewing, and should pick up any entries for external viewers ("needsterminal").

share|improve this answer
I am not able to understand the solution here. Could you please explain what I need to do? – hari Jan 9 '12 at 19:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .