Subject: [sup-talk] /usr/bin/run-mailcap

From: [email-masked] (Filip Stokkeland)
Date: Thu, 7 May 2009 13:58:02 +0200

In Sup, installed on a RHEL 5.1 with EPEL, using gems, when I select
f.ex. html attachments, I just get an error that view doesn't work and
I get the plain text. A quick grep in the code reveals this:

lib/sup/message-chunks.rb:      cmd = "/usr/bin/run-mailcap
--action=view '#{@content_type}:#{path}' 2>/dev/null"

I can't find run-mailcap on this RedHat installation. "yum
whatprovides" didn't help and the mailcap package had no such file
installed:

# rpm -ql mailcap
/etc/mailcap
/etc/mime.types
/usr/share/man/man4/mailcap.4.gz

Maybe run-mailcap a Debian/Ubuntu thing?  (I'll be back on my regular
ubuntu installation soon enough anyway, just using a lab machine right
now.) In Mutt I don't believe I did anything except use my default
.mailcap ...

Cheers.
-- 
Filip

---

From: [email-masked] (William Morgan)
Date: Thu, 07 May 2009 06:07:32 -0700

> now.) In Mutt I don't believe I did anything except use my default

It could very well be a Debianism. Is there a good alternative for
RedHat, or does Sup have to start manually parsing ~/.mailcap,
/etc/mailcap/, etc?
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Mark Alexander)
Date: Thu, 7 May 2009 11:29:30 -0400

On Thu, May 7, 2009 at 9:07 AM, William Morgan <wmorgan-sup at masanjin.net> wrote:
>> Maybe run-mailcap a Debian/Ubuntu thing? ?(I'll be back on my regular

For my Fedora 4 system, I found the run-mailcap script somewhere
(I forget where now, but I probably used Google to find it), and manually
installed it in /usr/bin.

---

From: [email-masked] (Ben Walton)
Date: Thu, 07 May 2009 09:21:21 -0400

> RedHat, or does Sup have to start manually parsing ~/.mailcap,

I just copied the script onto my box (rhel5.3) and it works fine.
Maybe a config knob for those that can't stick it in /usr/bin (or a
less hardcoded way of calling it to allow for $PATH).

-Ben
-- 
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302

GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090507/5bc6dee1/attachment.bin>