Re: mutt, html and chrome

2012-05-16 Thread Marco Giusti
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.


Re: mutt, html and chrome

2012-05-16 Thread Luis Mochan
Dear Marco,
Of course, simplicity is usually best! Thanks!
Luis

 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; ...

-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/

O ascii ribbon campaign - stop html mail - www.asciiribbon.org