On 2013-12-14, Chris Down <ch...@chrisdown.name> 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. > > Thanks.
While I was reading this thread, I remembered that, in the past, it was more frequent to see email messages as files under Microsoft Windows. I am not sure if it is exactly the same thing, but there is MHTML and Wikipedia says "The content of an MHTML file is encoded as if it were an HTML e-mail message, using the MIME type multipart/related." While vanilla Firefox does not support MHTML out of the box, I tried https://addons.mozilla.org/en-US/firefox/addon/unmht/ which is indeed able to render email messages with embedded pictures (you may need to add the .mht extension to the file, I'm not sure about this). I don't know if there is something similar for Google Chrome, but I thought this could help, at least, Firefox users. -- Nuno Silva (aka njsg) Helsinki, Finland