Can I use .mailcap for file associations?
Not easily. But see:
http://sourceforge.net/tracker/index.php?func=detail&aid=663546&group_id=7023&atid=357023
»
- Printer-friendly version
- Login to post comments
Yes, you can. Ish.
Create an executable file <Choices>/MIME-types/application (or the type you wish to use mailcap for) with the contents:
'see' is provided by the mime-support Debian package. It may have a different name on your system.
You can then copy/link this to whatever mime type you wish. If you link it to all of the media types (application, audio, image and text I think) then mailcap will be used instead of Rox's Choices system. I don't know if Rox has any support for a fallback media type.
Most of the MIME-types scripts I saw used $@ and this uses $1.