On Tue, May 15, 2012 at 03:50:56PM -0500, Luis Mochan wrote:
Looks more like mutt is handing over the URI file:///tmp/mutt.html to
your browser and before this has time to fetch the file, mutt has
deleted it again; depends on your configuration in .mailcap
I'm using the system's defaults since some long time ago. I guess the
relevant lines in my /etc/mailcap are:
text/html; /usr/bin/sensible-browser '%s'; description=HTML Text;
nametemplate=%s.html
text/html; /usr/bin/iceweasel '%s'; description=HTML Text; test=test -n
$DISPLAY; nametemplate=%s.html
text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML
Text; nametemplate=%s.html
text/html; /usr/bin/lynx -force_html '%s'; needsterminal; description=HTML
Text; nametemplate=%s.html
text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text
text/html; /usr/bin/lynx -dump -force_html '%s'; copiousoutput;
description=HTML Text; nametemplate=%s.html
Years ago I used to have
text/html; w3m %s; needsterminal; description=HTML Text;
nametemplate=%s.html
text/html; w3m -dump %s; copiousoutput; description=HTML Text;
nametemplate=%s.html
in my own .mailcap, in order to display html in a terminal, but now they
are commented out.
So the question now is, what should I put in my .mailcap?
This seems more like an hack but it works most of the times:
text/html; /usr/bin/sensible-browser '%s' sleep 2; ...
text/html; /usr/bin/iceweasel '%s' sleep 2; ...
...
The other question is what changed? This problem seems to be very
recent in my setup.
I don't know
m.