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

* Re: multiple mailcap entries
  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]   ` <q5gsmspnnmr.fsf@lucent.com>
       [not found] ` <85istme3yw.fsf.Hubert.Canon@alussinan.org>
  1 sibling, 2 replies; 8+ messages in thread
From: Jesper Harder @ 2003-04-09 14:52 UTC (permalink / raw)


Klaus Zeitler <kzeitler+usenet@gsm-mailhost.de.lucent.com> writes:

> I thought that entries in ~/.mailcap would have highest preference,
> but it seems to be the opposite.

Yes, ~/.mailcap entries are normally preferred.  There is one exception,
though, internal Emacs functions (such as `mailcap-save-binary-file')
are always preferred over external commands.


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

* Re: Gnus and indentation
       [not found]   ` <m3r88a8i6c.fsf@defun.localdomain>
@ 2003-04-11 10:53     ` Hubert Canon
  0 siblings, 0 replies; 8+ messages in thread
From: Hubert Canon @ 2003-04-11 10:53 UTC (permalink / raw)


Jesper Harder <harder@myrealbox.com> disait :

> Hubert Canon <hcanon@alussinan.org> writes:
>
>> When I read some code source in a news message with Gnus, it is not
>> indented, like with this one :
>>
>>> (type . "application/octet-stream"))
>>> ...))
>>
>> When I try to look with « \C-u g » it is perfectly normal, so I
>> suspect that Gnus is doing some magic I cannot understand. I don't
>> know exactly where all this come from. Have you got some idea where I
>> could look at ?
>
> Did you by any chance set `gnus-treat-leading-whitespace' to t?

No :

gnus-treat-leading-whitespace's value is nil

I am really clueless.

Is it worth that I upgrade to the latest Oort release ?

-- 
Hubert Canon


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

* Re: multiple mailcap entries
       [not found]       ` <84znmw7ov2.fsf@lucy.is.informatik.uni-duisburg.de>
@ 2003-04-11 20:58         ` Jesper Harder
  0 siblings, 0 replies; 8+ messages in thread
From: Jesper Harder @ 2003-04-11 20:58 UTC (permalink / raw)


kai.grossjohann@gmx.net (Kai Großjohann) writes:

> What do people think?  Should it be changed so that image/* in the
> personal file gets preferred over image/png in the system-wide file?
>
> I think so.

Me too.  This is also the right way according to RFC 1524.


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

* Re: multiple mailcap entries
       [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
  1 sibling, 0 replies; 8+ messages in thread
From: Adam Sjøgren @ 2003-04-12 15:32 UTC (permalink / raw)


On Sat, 12 Apr 2003 17:21:20 +0200, Kai Großjohann wrote:

>> I don't know.  RFC 1524 specifies the order in which they should be
>> used:

>> |    $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap

> IMHO the ordering given there doesn't make sense -- maybe there is a
> bug in RFC 1524?

What is it about the ordering, that doesn't make sense?

It looks like "Choose user-preference first, then go systemwide -
preferring the most global existing mailcap", to me?


  Best regards,

-- 
 "Vilken sanning, Måns, är sann?"                              Adam Sjøgren
                                                          asjo@koldfront.dk


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

* Re: multiple mailcap entries
       [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
  1 sibling, 0 replies; 8+ messages in thread
From: Vasily Korytov @ 2003-04-12 16:21 UTC (permalink / raw)


On Sat, 12 Apr 2003 17:21:20 +0200, Kai Groъjohann wrote:

> IMHO the ordering given there doesn't make sense -- maybe there is a
> bug in RFC 1524?

Don't agree. IMHO we should keep this ordering.

-- 
       I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 123A 7CCE 6E26 6233 0D87 E01A A0F8 3524 FCD8 1841


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

* Re: multiple mailcap entries
       [not found]       ` <i7he9396e8.fsf@hilbert.math.albany.edu>
       [not found]         ` <m3adevu7il.fsf@defun.localdomain>
@ 2003-04-12 16:27         ` Vasily Korytov
  1 sibling, 0 replies; 8+ messages in thread
From: Vasily Korytov @ 2003-04-12 16:27 UTC (permalink / raw)


On 12 Apr 2003 09:45:03 -0400, William F. Hammond wrote:

> Aren't /etc and /usr/etc generally are regarded as being for vendor
> defaults, while /usr/local/etc is for system defaults?  If so,
> shouldn't /usr/local/etc be higher in these lists?
[...]

I have never heard of such a convention. IIRC, FHS doesn't mention
/usr/(local/)?/etc at all.

IMHO, if I have both /usr/local/etc/aa.conf and /etc/aa.conf, that's
wrong by itself and I shouldn't care much about the sequence.

The reason to have /etc/mailcap before /usr/local/etc/mailcap is: it's
more standard and frequently used.

-- 
       I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 123A 7CCE 6E26 6233 0D87 E01A A0F8 3524 FCD8 1841


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

* Re: multiple mailcap entries
       [not found]     ` <m3fzooesro.fsf@defun.localdomain>
       [not found]       ` <i7he9396e8.fsf@hilbert.math.albany.edu>
@ 2003-04-14  6:38       ` Arne Jørgensen
  1 sibling, 0 replies; 8+ messages in thread
From: Arne Jørgensen @ 2003-04-14  6:38 UTC (permalink / raw)


Jesper Harder <harder@myrealbox.com> writes:

> I guess to fix the logic in mailcap.el to observe this order of priority
> if mailcap.el specifies an internal command:
>
>    ~/.mailcap
>    mailcap.el
>    /etc/mailcap
>    /usr/etc/mailcap
>    /usr/local/etc/mailcap
>
> but this order if the entry in mailcap.el is an external command:
>
>     ~/.mailcap
>     /etc/mailcap
>     /usr/etc/mailcap
>     /usr/local/etc/mailcap
>     mailcap.el


Why not invent a ~/.mailcap.el and put it at the beginning of the
search path?

That way it doesn't matter whether it is an internal or external
command. If the command is specified in ~/.mailcap.el it is the
command that is to run from emacs.

Kind reagrds,
-- 
stud. scient. Arne Jørgensen
Kollegium 5, 2. v. 222, Universitetsparken, DK-8000 Aarhus C, Denmark
phone: +45 89 42 72 22, mobile: +45 21 65 01 13
email: arne@daimi.au.dk, <http://www.daimi.au.dk/~arne/>


^ 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).