Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* multiple mailcap entries
@ 2003-04-09 13:10 Klaus Zeitler
  2003-04-09 14:52 ` Jesper Harder
       [not found] ` <85istme3yw.fsf.Hubert.Canon@alussinan.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Klaus Zeitler @ 2003-04-09 13:10 UTC (permalink / raw)



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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-14  6:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 13:10 multiple mailcap entries Klaus Zeitler
2003-04-09 14:52 ` Jesper Harder
     [not found]   ` <84k7e16o11.fsf@lucy.is.informatik.uni-duisburg.de>
     [not found]     ` <m3d6jseslm.fsf@defun.localdomain>
     [not found]       ` <84znmw7ov2.fsf@lucy.is.informatik.uni-duisburg.de>
2003-04-11 20:58         ` Jesper Harder
     [not found]   ` <q5gsmspnnmr.fsf@lucent.com>
     [not found]     ` <m3fzooesro.fsf@defun.localdomain>
     [not found]       ` <i7he9396e8.fsf@hilbert.math.albany.edu>
     [not found]         ` <m3adevu7il.fsf@defun.localdomain>
     [not found]           ` <84brzbvj0v.fsf@lucy.is.informatik.uni-duisburg.de>
2003-04-12 15:32             ` Adam Sjøgren
2003-04-12 16:21             ` Vasily Korytov
2003-04-12 16:27         ` Vasily Korytov
2003-04-14  6:38       ` Arne Jørgensen
     [not found] ` <85istme3yw.fsf.Hubert.Canon@alussinan.org>
     [not found]   ` <m3r88a8i6c.fsf@defun.localdomain>
2003-04-11 10:53     ` Gnus and indentation Hubert Canon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).