From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2289 Path: news.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.gnus.user Subject: multiple mailcap entries Date: 09 Apr 2003 15:10:00 +0200 Organization: Lucent Technologies Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668773 14588 80.91.229.2 (31 Jan 2006 00:52:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:52:53 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:28 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.gnus Original-Sender: kzeitler@sfsw51 Original-NNTP-Posting-Host: sfsw51.de.lucent.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2429 Original-Lines: 50 X-Gnus-Article-Number: 2429 Tue Jan 17 17:30:28 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2289 Archived-At: On my Solaris workstation I use qvpunix to read msword and excel files. I've used the following entry in my .mailcap file to read msword files automatically, when I press enter on a msword attachment: application/msword; qvpunix -mn %s This has been working fine. Now I tried to do the same for excel files and added: application/octet-stream; qvpunix -mn %s But this doesn't work, instead gnus asks me where to save the attachment. The difference between these to entries seems to be that the variable mailcap-mime-data contains (amongst many others) only one entry for application/msword , but 2 for application/octet-stream: (("application" ("octet-stream" (viewer . "qvpunix -mn %s") (type . "application/octet-stream")) ("msword" (viewer . "qvpunix -mn %s") (type . "application/msword")) ... ("octet-stream" (viewer . mailcap-save-binary-file) (non-viewer . t) (type . "application/octet-stream")) ...)) and function mailcap-mime-info returns mailcap-save-binary-file as viewer for "application/octet-stream", i.e. the 2nd entry. I thought that entries in ~/.mailcap would have highest preference, but it seems to be the opposite. It seems that I have to modify the variable mailcap-mime-data instead or do I miss something? Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- Let's see, now that I am done.......... :w :q :wq :wq! ^d X exit X Q :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZ ZZZZ ^H ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d ^C ^c ^x^c helpexit ?Quit ?q ^Kx /QY Oooops.......... Discs synced; halted