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

Better tab completion for scp file names

As a lot of you may know, zsh offers tab completion for scp: filenames.
Normally it would connect and then list the files. As you can imagine this isn’t really that efficient.
The solution is quite simple… By adding

Read More

A critical look at Atom.io

I’m currently sitting at my Macbook Air 2013 writing this, which supposedly has a Haswell i7 ultramobile inside. According to my standards that’s a pretty decent amount of computing power.

Read More