I want to render html within mutt but I haven't succeed configuring it yet.

I want to use w3m so my .mailcap looks like :

text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal;
text/html; w3m -I %{charset} -T text/hmtl; copiousoutput;

And for the rendering in mutt I have added :

auto_view text/html
alternative_order text/plain text/enriched text/html

This is what I looks like when I open a text/html document (I press v and then return to the text/html)

[-- Autoview using w3m -I 'utf-8' -T text/hmtl --]
<html><head></head><body><!-- content: html tiny_mce -->
<p>Bonjour a tous,</p>
<p>Une page Didel pour le cours Analyse et Probabilites a ete cree.</p>
<p>Tous les etudiants qui suivent ce cours sont invites a y s'insrcire.</p>
<p>Les DMs vont etre mises en ligne sur ce site.</p>
<p>Adina Ralea</p>

<div class="lnk_link_panel">
<br /><br />-- <br />Adina Giorgianna Ralea<br />Gestionnaire du cours L3
+Mathématiques-Informatique 2015-2016 (L3MI2014)<br /><br /><a
+href="http://didel.script.univ-paris-diderot.fr/">Diderot en ligne</a><br
+/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Administrateur: <a

We can see that autoview is using w3m, but why isn't it rendering ?


The -T value you are passing to w3m has a typo. It should be text/html instead of text/hmtl:

text/html; w3m -I %{charset} -T text/html; copiousoutput;
  • Oh thank you ! This such a shame, I have asked many questions these days it was always some stupid errors... I apologize to the community. – Nicolas Scotto Di Perto Jan 31 '16 at 18:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.