On 2013-12-14 07:43:31 -0500, Peter Davis wrote: > 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.
Well, this is the macro I currently use: macro attach B "<pipe-message>cat > /tmp/mutt.html; chromium /tmp/mutt.html<enter>" That obviously has a race condition, but in practise it's not an issue. The one thing that annoys me is that I have to go into the attach menu to select the HTML part to do this. If I pipe from the pager, I might end up piping the text/plain part (which, in one particular case, says "You need HTML to view this message" -- what the?!).
pgpHVXpmRUAqQ.pgp
Description: PGP signature