On Feb 24 10:57:26, Joachim Schipper wrote:
> On Thu, Feb 24, 2011 at 10:11:22AM +0100, Jan Stary wrote:
> > On Feb 09 17:56:59, Ingo Schwarze wrote:
> > > text/html; /usr/bin/lynx -stdin -force_html -dump ; copiousoutput
> > 
> > On Feb 09 10:59:54, Marco Peereboom wrote:
> > > text/html; /usr/local/bin/links -dump '%s'; copiousoutput; 
> > > description=HTML Text; na metemplate=%s.html
> > 
> > On Feb 09 23:12:27, Igor Zinovik wrote:
> > > text/html ; lynx -force_html -assume_charset=koi8-r 
> > > -assume_unrec_charset=utf8 -dump %s ; copiousoutput; nametemplate=%s.html
> 
> > I have been using (variations of) these for years in my ~/.mailcap,
> > which made mutt(1) launch lynx(1) on the html attachments. Since
> > I upgraded to 
> > 
> > OpenBSD 4.8-current (GENERIC) #448: Fri Oct 22 09:43:05 MDT 2010
> >     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> > 
> > with mutt-1.5.21p0, it no longer works.
> > (Should I take this to ports?)
> > 
> > Trying to view a HTML attachment from the attachment menu
> > results in the attachment being displayed by mutt's internal
> > viewer. I stripped my ~/.mailcap to the minimum suggested by
> > http://www.mutt.org/doc/manual/manual-5.html#ss5.3
> > 
> >     text/html; lynx %s ; nametemplate=%s.html
> > 
> > and even that does not work. It seems like my ~/.mailcap is ignored.
> > (Copying to /etc/mailcap doesn't seem to make any difference.)
> > 
> > Does anyone have a hint of what could be causing this?
> 
> text/html is usually in Mutt's auto_view list; auto_view stuff is
> automatically piped through any viewer with "copiousoutput" set,

Yes, but that's not the issue here. I don't want the html attachments to
be autoviewed; in fact, I have 'set implicit_autoview=no' in ~/.muttrc

> whereas non-"copiousoutput" entries are only used if you explicitly open it
> ('v' -> select item -> 'm').

This is what I want; and in fact, it does work, when I explicitly open
them with 'v' -> select  -> 'm'; until now,, I have been explicitly
opening the attachments I wanted to view with 'v' -> select -> Enter.
That's what stooped working; opening them with 'm' runs the correct
(~/.mailcap) lynx command over them.

Thank you!

        Jan

Reply via email to