On Sat, Dec 14, 2013 at 08:27:09PM +0800, Chris Down wrote: > Occasionally I get complex HTML e-mails that don't quite work in w3m > (which is what I have in my mailcap to view text/html). In these > instances, I would like to be able to somehow view these in my browser. > Right now my procedure is this: > > - Go to attach > - Save the html part as /tmp/foo.html > - Open my browser > - Open file:///tmp/foo.html > > Is there some way I can automate this better, say, by being able to hit > a key and have the HTML part of the message open in the browser? > > My browser is Chromium, but I think any generic solution should be > adaptable.
If you Google "pipe to browser," you'll find various tools that will do this for you. I use one on the Mac called simply "browser," but there are others. Then in mutt you could simply view the list of parts ('v' command) and pipe the html ('|' command) to one of those. I think these mostly just do what you're doing ... save the html to a temp file and open that in the default browser.