On Sat, Nov 27, 2010 at 04:47:26PM +0100, Arele wrote:
> Hi.
> I would like to view some html's messages in external browser like
> iceweasel/firefox, opera,...
> I have configured to see the html message with w3m or links2 but
> sometimes I would like to view all the message in graphical browser.
> Well, at this time urlview don't work like I want because sometimes I
> receive some messages who has not links to extract.
> What hook or trick can I use?
I do the following:-
In my muttrc file I have:-
auto_view text/html
In my .mailcap I have:-
text/html; /usr/bin/firefox %s
text/html; links -dump %s -html-numbered-links 1; copiousoutput;
nametemplate=%s.html
This means that HTML E-Mails are automatically shown within mutt as text
by links (obviously you can use lynx, w3m or whatever). Then if I want
to view the E-Mail in a GUI browser I v[iew] the message and hit return
against the .html version to pop the message up in firefox (again you
can obviously select whatever GUI browser you want).
I believe it's the 'copiousoutput' that's necessary to make it work like
this.
--
Chris Green