Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Gnus seems to not understand video/* syntax in mailcap files.
@ 2016-02-13 20:55 Ben Bacarisse
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Bacarisse @ 2016-02-13 20:55 UTC (permalink / raw)
  To: info-gnus-english

My system is currently set up so that gnus happens to use mplayer to
open video mime parts but I'd like it, and other mailcap aware programs,
to use something else.  So I put the line

video/*; totem %s

into ~/.mailscap.  Checking with run-mailcap shows it to be working as
expected, but gnus continues to use mplayer.  However, if I put

video/quicktime; totem %s

in there instead, all is well for that one type -- gnus uses totem for
quicktime files (but, of course, mplayer for every other video type).

The same happens if the line is in the /etc/mailcap "user section":
video/* does not work but video/quicktime does.

Is this as per design, or is it a bug?

-- 
Ben.


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

* Re: Gnus seems to not understand video/* syntax in mailcap files.
  2016-02-15  4:26     ` Lars Ingebrigtsen
@ 2016-02-15 11:19       ` Ben
  0 siblings, 0 replies; 5+ messages in thread
From: Ben @ 2016-02-15 11:19 UTC (permalink / raw)
  To: info-gnus-english; +Cc: Lars Ingebrigtsen

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Ben <ben.lists@bsb.me.uk> writes:
>
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>>
>>> Ben Bacarisse <ben.lists@bsb.me.uk> writes:
>>>
>>>> My system is currently set up so that gnus happens to use mplayer to
>>>> open video mime parts but I'd like it, and other mailcap aware programs,
>>>> to use something else.  So I put the line
>>>>
>>>> video/*; totem %s
>>>>
>>>> into ~/.mailscap.  Checking with run-mailcap shows it to be working as
>>>> expected, but gnus continues to use mplayer.
>>>
>>> I can't find the string "mplayer" anywhere in the Gnus sources, so do
>>> you know where that setting is coming from?
>>
>> It's in /etc/mailcap -- where system-wide settings are placed.  Gnus
>> reads /etc/mailcap and ~/.mailcap to determine what to do with mime
>> parts.
>
> ~/.mailcap should certainly win over /etc/mailcap, but more specific
> settings should also win over less general settings.  My guess is that
> /etc/mailcap has something like
>
> video/mpeg; mplayer %s; description="MPEG Video"
>
> which makes it more specific than the video/* in your ~/.mailcap.
>
> But I still think that your ~/.mailcap should have won.

That is certainly how other programs that use mailcap files interpret it
-- a personal wild-card setting wins over even a very specific system
setting.

> Please report
> this as a bug with `M-x report-emacs-bug'.

OK.

-- 
Ben.


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

* Re: Gnus seems to not understand video/* syntax in mailcap files.
  2016-02-14 16:48   ` Ben
@ 2016-02-15  4:26     ` Lars Ingebrigtsen
  2016-02-15 11:19       ` Ben
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-15  4:26 UTC (permalink / raw)
  To: Ben; +Cc: info-gnus-english

Ben <ben.lists@bsb.me.uk> writes:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Ben Bacarisse <ben.lists@bsb.me.uk> writes:
>>
>>> My system is currently set up so that gnus happens to use mplayer to
>>> open video mime parts but I'd like it, and other mailcap aware programs,
>>> to use something else.  So I put the line
>>>
>>> video/*; totem %s
>>>
>>> into ~/.mailscap.  Checking with run-mailcap shows it to be working as
>>> expected, but gnus continues to use mplayer.
>>
>> I can't find the string "mplayer" anywhere in the Gnus sources, so do
>> you know where that setting is coming from?
>
> It's in /etc/mailcap -- where system-wide settings are placed.  Gnus
> reads /etc/mailcap and ~/.mailcap to determine what to do with mime
> parts.

~/.mailcap should certainly win over /etc/mailcap, but more specific
settings should also win over less general settings.  My guess is that
/etc/mailcap has something like

video/mpeg; mplayer %s; description="MPEG Video"

which makes it more specific than the video/* in your ~/.mailcap.

But I still think that your ~/.mailcap should have won.  Please report
this as a bug with `M-x report-emacs-bug'.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no


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

* Re: Gnus seems to not understand video/* syntax in mailcap files.
  2016-02-14  2:37 ` Lars Ingebrigtsen
@ 2016-02-14 16:48   ` Ben
  2016-02-15  4:26     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Ben @ 2016-02-14 16:48 UTC (permalink / raw)
  To: info-gnus-english; +Cc: Lars Ingebrigtsen

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Ben Bacarisse <ben.lists@bsb.me.uk> writes:
>
>> My system is currently set up so that gnus happens to use mplayer to
>> open video mime parts but I'd like it, and other mailcap aware programs,
>> to use something else.  So I put the line
>>
>> video/*; totem %s
>>
>> into ~/.mailscap.  Checking with run-mailcap shows it to be working as
>> expected, but gnus continues to use mplayer.
>
> I can't find the string "mplayer" anywhere in the Gnus sources, so do
> you know where that setting is coming from?

It's in /etc/mailcap -- where system-wide settings are placed.  Gnus
reads /etc/mailcap and ~/.mailcap to determine what to do with mime
parts.

-- 
Ben.


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

* Re: Gnus seems to not understand video/* syntax in mailcap files.
       [not found] <mailman.4594.1455396972.843.info-gnus-english@gnu.org>
@ 2016-02-14  2:37 ` Lars Ingebrigtsen
  2016-02-14 16:48   ` Ben
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2016-02-14  2:37 UTC (permalink / raw)
  To: Ben Bacarisse; +Cc: info-gnus-english

Ben Bacarisse <ben.lists@bsb.me.uk> writes:

> My system is currently set up so that gnus happens to use mplayer to
> open video mime parts but I'd like it, and other mailcap aware programs,
> to use something else.  So I put the line
>
> video/*; totem %s
>
> into ~/.mailscap.  Checking with run-mailcap shows it to be working as
> expected, but gnus continues to use mplayer.

I can't find the string "mplayer" anywhere in the Gnus sources, so do
you know where that setting is coming from?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no


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

end of thread, other threads:[~2016-02-15 11:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-13 20:55 Gnus seems to not understand video/* syntax in mailcap files Ben Bacarisse
     [not found] <mailman.4594.1455396972.843.info-gnus-english@gnu.org>
2016-02-14  2:37 ` Lars Ingebrigtsen
2016-02-14 16:48   ` Ben
2016-02-15  4:26     ` Lars Ingebrigtsen
2016-02-15 11:19       ` Ben

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