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, whereas non-"copiousoutput" entries are only used if you explicitly open it ('v' -> select item -> 'm'). E.g. from my mailcap: # Process HTML with firefox or w3m text/html; firefox -a firefox -remote 'openurl(%s)' ; test=[ ! -z "$DISPLAY" ] && pgrep -xu `id -u` firefox-bin text/html; firefox %s ; test=[ ! -z "$DISPLAY" ] text/html; w3m %s ; nametemplate=%s.html text/html; w3m -dump %s ; copiousoutput ; nametemplate=%s.html When viewing HTML mail, it uses w3m -dump (auto_view, copiousoutput). When opening ('m') HTML stuff, it uses: * a running Firefox, if mutt is running under X and a running Firefox is available; * otherwise, a new Firefox, if mutt is running under X; * otherwise, w3m. Joachim -- TFMotD: mkdep (1) - construct Makefile dependency list http://www.joachimschipper.nl/