<<< Date Index >>>     <<< Thread Index >>>

Re: Can one have two alternative programs to view text/html?



Thus spake Chris Green:
> Is it possible to set up mutt and mailcap so that by default it uses
> lynx (or other text mode browser) to view HTML mail but one can use
> a GUI browser (is that the word) as an option?
> 
> Normally I simply want to see the text of HTML E-Mail (that's all
> there is in most of them!) but occasionally they have pictures that I
> want to see.
> 

You can do this if you use autoview for the text mode, something like
this:

text/html; mozilla.sh %s; test=InXTerm
text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput

Then when you open an html email, it'll be dumped to ascii and will be
viewable in the normal pager, but if you hit 'v' or 'l' or whatever it
is (I have a fairly heavily customised keyboard layout -- I use the vim
keys for most things, so I can't remember what the proper key is) to get
the attachments view up and load the html from there, it'll open in
mozilla.

Hope that helps,

Al