tags 436243 + moreinfo
thanks

Re: Folkert van Heusden 2007-08-06 <[EMAIL PROTECTED]>
> mutt ignores ~/.mailcap when type is already set in global (/etc/mailcap) file
> 
> e.g. in ~/.mailcap I have:
> audio/mp3; /usr/local/bin/mp3info -v -f %s ; copiousoutput
> audio/x-mp3; /usr/local/bin/mp3info -v -f %s ; copiousoutput
> audio/mpeg; /usr/local/bin/mp3info -v -f %s ; copiousoutput
> 
> and in /etc/mailcap I got:
> audio/mpeg; mpg123 -q '%s'; needsterminal
> audio/mpeg; /usr/bin/gmplayer '%s'; description="MPEG Audio Format"
> audio/mpeg;     noatun --nofork '%s';   nametemplate=%s.mpg;    test=test 
> "$DISPLAY" != ""
> audio/x-mp2;    noatun --nofork '%s';   nametemplate=%s.mp2;    test=test 
> "$DISPLAY" != ""
> audio/x-mp3;    noatun --nofork '%s';   nametemplate=%s.mp3;    test=test 
> "$DISPLAY" != ""
> 
> now I would expect mutt to invoke mp3info when it finds an mp3-attachment but 
> it does not
> (in fact it runs mpg123 when I press enter on it)

Hi,

works here:

[0] 08:24 [EMAIL PROTECTED]:~ 2s 2j $ grep gif /etc/mailcap .mailcap
/etc/mailcap:image/gif; display 'gif:%s'; test=test -n "$DISPLAY"
/etc/mailcap:image/gif;  /usr/bin/iceweasel '%s'; description=GIF Image; 
test=test -n "$DISPLAY";  nametemplate=%s.gif
.mailcap:image/gif; file '%s'; copiousoutput

It could be that you are looking for "auto_view audio/mp3" - does that
work for you?

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to