« Resizing multiple font sizes at once in KeynoteMy F# talk on Channel 9 »

Getting alpine on the Mac to open attachments in Firefox

29/07/09

Permalink 11:22:23 pm
Categories: General

Getting alpine on the Mac to open attachments in Firefox

I’ve been fighting this for a while: alpine can open links just fine in Firefox, but when it’s an attachment I want to open (like the HTML part of a message), it fails saying that Firefox is already running and it can’t run another instance.

First, I enabled the Prefer Plain Text option. The results are typically nicer than the rendered HTML. It’s easy to see the internally rendered HTML anyway, just use the A key in the message viewer.

Now, when an HTML attachment is being opened, the confusing thing is that Firefox.app is automagically associated with the text/html mime type. On a real Unix system, /etc/mailcap will be the config file that sets this up, but this doesn’t exist on the Mac – no idea how this works really. Fortunately, alpine allows me to configure my own mailcap path, which I set to ~/.mailcap. Then I created that file with this line inside:

text/html; /usr/bin/open %s

And voila – suddenly everything works just fine. Final hint: in the attachment list for a message, the A key can be used to show info about an attachment, including the command used to view it. This should show /usr/bin/open if everything is set up correctly.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
Please complete the song title below. Hint: enter 's', 'a', 't', 'i', 's', 'f', 'a', 'c', 't', 'i', 'o', 'n'
antispam test

Enter your email address:

Search

Oliver
MVP logo
May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31