CHA-MAILCAP(5) File Formats Manual CHA-MAILCAP(5) (NAME) cha-mailcap - mailcap Chawan (Mailcap) Chawan HTML . mailcap HTML Chawan . mime.types Chawan /etc/mime.types . cha-mime.types(5) . mailcap RFC 1524 . (Search path) mailcap external.mailcap . RFC : $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap mailcap (prompt) r ( - run) . t ( - text) s ( - save). ( shift + R) external.auto-mailcap (: ~/.chawan/mailcap ~/.config/chawan/mailcap XDG). (T)ext (S)ave . auto-mailcap Chawan ( mailcap ). (Format) Chawan RFC 1524 . text/html text/plain . (Templating) . Chawan . ( $(command substitutions) .) : text/x-example; s=%s cat "$s"; copiousoutput : o %s . %s . %s (standard input) . ( needsterminal .) o %t (content type) . %{charset} . text/html; charset=utf-8 %t %{charset} "utf-8" . o (URL) : %u ( Netscape) URL %h ( w3mmee) %H %? ( w3mmee) (query string) . ( w3mmee %? . (null) Chawan .) (Fields) : o test mailcap 0 . X11 : image; feh -; test=test -n "$DISPLAY" : %s test . test %s test . o copiousoutput Chawan . x-htmloutput x-ansioutput copiousoutput . o needsterminal . copiousoutput x-ansioutput x-saveoutput x-htmloutput . o nametemplate %s . RFC . o x-htmloutput ( w3m) copiousoutput Chawan HTML . o x-ansioutput "text/x-ansi" (pipe) ANSI . o x-saveoutput . o x-needsstyle CSS . x-htmloutput . ( -cha-content-type cha-css(7) .) o x-needsimage x-htmloutput . o x-type ( w3mmee) MIME . MIME ( ) . external.auto-mailcap . x-type text/plain text/html ( mailcap ). ( -T) x-type . (: x-type . .) o x-match ( w3mmee) URL (regex) . x-nc-match (case-insensitive). x-match=https?://example\.org/.* example.org ( ). test (AND) . o x-netpath ( w3mmee) URI net_path RFC 2396 . URI (authority ) example://blah/path example:/path . file net_path . file:///path : net_path . ( URL WHATWG .) (Examples) ~/.chawan/mailcap ( ~/.config/chawan/mailcap XDG) . mailcap external.auto-mailcap ~/.mailcap . # : mime.types md # markdown . # markdown pandoc. text/markdown; pandoc - -f markdown -t html -o -; x-htmloutput # bat. text/javascript; bat -f -l es6 --file-name %u -; x-ansioutput # mpv mpv. audio/*; mpv -; needsterminal # mpv # /dev/null. video/*; mpv - # docx LibreOffice Writer. application/vnd.openxmlformats-officedocument.wordprocessingml.document; lowriter %s # pandoc. ( mime # mime.types .1 .2 .3 ) application/x-troff-man; pandoc - -f man -t html -o -; x-htmloutput # epub HTML pandoc. ( mime.types .) # http_proxy http/s . application/epub+zip; http_proxy=localhost:0 pandoc - -f epub \ --embed-resources --standalone; x-htmloutput # . : alias chadump='cha -Ttext/x-hexdump' # ( .) text/x-hexdump; od -w12 -A x -t x1z -v; copiousoutput # text/html Chawan . text/html; cha -dT text/html -I %{charset}; copiousoutput (SEE ALSO) cha(1) CHA-MAILCAP(5)