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 _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
