RE: Detecting attachment types by file extension.. how to change exmh's behaviour?
Stephen Wilcoxon <[email protected]>
| Newsgroups | gmane.mail.exmh.user |
|---|---|
| Message-ID | <B7423E7826D07A48975B049E7F9EB994014738C5@STLSMSXM03.amers.ime.reuters.com> |
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)). 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"). -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Baaden Sent: Thursday, May 24, 2007 8:49 AM To: [email protected] Subject: Detecting attachment types by file extension.. how to change exmh's behaviour? Hi, I am configuring exmh for use on MacOSX. Currently I am working on the mailcap file and on calling the right Applications to open attachments. In principle this is simple, and the following is a minimal but sufficient set: application/*; /usr/bin/open %s audio/*; /usr/bin/open %s image/*; /usr/bin/open %s video/*; /usr/bin/open %s Now the problem is that exmh saves its attachment with the extension .exmh which is a problem for open. As an example, I have a audio WAV file attachment which does not open with exmh's name (1.0=1.13959.exmh), but which opens properly if I rename it to something.wav. Furthermore I see that the filename is declared as whatever.wav in the actual mail message. So I wonder whether I couldnt' get exmh to just use that filename as temporary file, as then the open command would work fine on it. I hope my explanation was clear, please don't hesitate to ask for more precisions. Thanks in advance, Marc Baaden -- 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 _______________________________________________ Exmh-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/exmh-users This email was sent to you by Reuters, the global news and information company. To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Limited. Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company. Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No: 3296375 Registered in England and Wales