<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2972: Have auto_view use its own command instead of



#2972: Have auto_view use its own command instead of consulting mailcap

Comment (by Aron Griffis):

 {{{
 Mutt wrote:  [Sat Oct 20 2007, 08:12:29AM EDT]
 >  I can define "auto_view
 >  image/jpeg" in my .muttrc, and then configure Mutt's mailcap file to
 run
 >  this command, and then everything works when I bring up the message
 that
 >  the JPEG file is attached to.  Unfortunately, this means that when I
 open
 >  the attachment individually (for example, by hitting "v" and then
 >  selecting it), I still get the text output when what I want is to spawn
 an
 >  image viewer to actually view the picture.

 I think you can get the behavior you want by defining one mailcap
 entry with copiousoutput and one without, for example:

 image/*; display %s
 image/*; convert -geometry 80x1000 %s pbm:- | pbmtoascii ; copiousoutput

 (Just an example... you probably want test= to check $DISPLAY, etc)

 Aron
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2972#comment:>