From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnbent@lanl.gov (John Bent) Date: Thu, 24 Jan 2008 16:52:36 -0700 Subject: [sup-talk] missing run-mailcap In-Reply-To: <1201216741-sup-4105@south> References: <1201019996-sup-8960@tangerine.lanl.gov> <1201041081-sup-6034@tangerine.lanl.gov> <1201210323-sup-6116@tangerine.lanl.gov> <1201216741-sup-4105@south> Message-ID: <1201218489-sup-3542@tangerine.lanl.gov> Excerpts from William Morgan's message of Thu Jan 24 16:26:20 -0700 2008: > Reformatted excerpts from John Bent's message of 2008-01-24: > > When sup opens an attachment, it copies the attachment to > > /tmp/sup-attachment-ID and then calls run-mailcap. But sup knows what > > name the file was attached as. Could sup save the attachment to > > /tmp/filename? Or at least append the extension? > > In 0.4 you should see the extension being preserved. Let me know if > that's not the case. > > So you should be able to simply call "open" on that file, rather than > having to use your Perl script. > Yep, just like you say. Although, I think I do still need to have something in /usr/bin/run-mailcap that parses "--action=view application/vnd.ms-powerpoint:/tmp/foo.ppt," and then execs "open /tmp/foo.ppt." But that's much better than having to guess an extension from the mime-type. John