puzzling.org · mary.gardiner.id.au

Mailcap Configuration: Setting MIME type Handlers

Setting up mailcap to auto view HTML files for mutt

Normally your /etc/mailcap file has relatively sensible defaults, but:

Elinks

If you like ELinks, put the following lines in your ~/.mailcap file to view HTML files:

text/html; /usr/bin/elinks -force-html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/elinks -force-html -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html

Links

If you like links, put the following lines in your ~/.mailcap file to view HTML files:

text/html; /usr/bin/links '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/links -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html

Lynx

If you like lynx, put the following lines in your ~/.mailcap file to view HTML files:

text/html; /usr/bin/lynx '%s'; needsterminal; description=HTML Text; nametemplate=%s.html
text/html; /usr/bin/lynx -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html

Last modified: 24 November 2005