On h, febr 24, 2014 at 21:32:23 +0100, Timo Schmidt wrote: > On Mon 24.02.2014 11:29, LEVAI Daniel wrote: > > > > I have this in my ~/.mailcap: > > > > text/html; links %s; needsterminal > > > > And I didn't set auto_view for text/html in Mutt, but when I press Enter > > or Space on the text/html part (after (v)iewing the message from index) > > it just display the raw HTML. > > See http://www.mutt.org/doc/devel/manual.html#tab-attachment-bindings > in particular: > <view-mailcap> m force viewing of attachment using mailcap
Wow, you win. But this doesn't make sense: Using these mailcap entries: text/html; google-chrome %s; nametemplate=%s.html; test=test -n "$DISPLAY" text/html; lynx -stdin -dump -force_html; copiousoutput ... without `auto_view text/html` pressing <Space> on the text/html MIME part it just displays the raw HTML, but with `auto_view text/html` Mutt chooses to use the *last* mailcap entry, and ignore the one before it?! So basically, "<Space> view attachment using mailcap entry if necessary" means mailcap is only necessary, when ... when? Of course, using 'm', ie. forcing Mutt to use the mailcap entry works, but what's the point of the multiple mailcap entries combined with auto_view then? Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F