launching firefox with text/html entry in mutt 1.5,21

  • September 17, 2011
Table of Contents

I recently decided that I might want to see some html mails in a real browser instead of a w3m dump. For example when I need to click on the stupid reset password link, which is sent in the html only mail from easyjet.

Figured it would be the easiest thing in the world to do, just change the mailcap entry for text/html and you’re set. But instead I get this:

mailcap entry for type text/html not found

The bad part: It obviously doesn’t work that way. Turns out certain changes in the auto_view behaviour of mutt 1.5.21 cause this. There’s even a bugreport on the matter

The good part: You can now have 2 mailcap entries for text/html. One will be used to display the message inside of mutt. The other will run firefox by pressing m (view-mailcap) in the file list.

My mailcap thus starts as follows:

text/html; firefox %s ;
text/html; w3m -T text/html -dump %s; copiousoutput

Note that the order of the entries is important. Should you switch it both m and the pager will only show the dump.

comments powered by Disqus

Related Posts

A prettier Terminal in OS-X Part 2 (urxvt and more awesomeness)

Update: thanks to Sung Pae you don’t need to rename perl, you can just set the environment variable:

Read More: A prettier Terminal in OS-X Part 2 (urxvt and more awesomeness)

gentoo osx

Update: I also forgot to run the emerge -u world after the bootstrap. So you might want to do that yourself.

Read More: gentoo osx

Protonet webOS socket example

I’ve just written a sample application for creating sockets in webOS applications. You can read the full blog post about it on the protonet homepage

Read More: Protonet webOS socket example