Re: Detecting attachment types by file extension.. how to change exmh's behaviour?

Marc Baaden <[email protected]>
Newsgroups gmane.mail.exmh.user
Message-ID <[email protected]>
>>> Stephen Wilcoxon said:
 >> I don't have much experience with MacOS-X but it looks to me like the
 >> problem is with /usr/bin/open and not with exmh.  I've never heard of a
 >> unix command that operates based on file extensions before (rather than
 >> determining type based on file contents (eg file)).

Well, open is not quite a Unix command. On Mac OSX there are specific file
identifiers that open uses to recognize the filetype and application to use.
But for files that come from "outside" Mac OSX it relies on the filename
extension and apparently doesn't use "file" to determine the appropriate
application.

 >> If open is a shell script, I'd suggest rewriting it.  If it is a binary,
 >> I'd suggest bypassing it and calling the appropriate application
 >> directly in the mailcap (eg "audio/*; /usr/bin/musicprog %s").

Well, a proper filename is given in the MIME attachment header, so why couldn't
exmh just use this as temporary filename, and then there wouldn't be an issue
with open?
I just want to avoid going through a couple of hundreds of MIME types (I just checked
the mailcap file on my linux box) to get things working..

Regards,
Marc

-- 
 Dr. Marc Baaden  - Institut de Biologie Physico-Chimique, Paris
 mailto:[email protected]      -      http://www.baaden.ibpc.fr
 FAX: +33 15841 5026  -  Tel: +33 15841 5176  ou  +33 609 843217
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.