Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > dcb57bc1f616cf3a8072df2efbbf2767 > files > 78

elinks-0.12-18.mga7.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Fields</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="The ELinks Manual"><link rel="up" href="ch10.html" title="Chapter 10. Managing External Viewers with Mailcap"><link rel="prev" href="ch10s03.html" title="Reading of Mailcap Files"><link rel="next" href="ch10s05.html" title="Mailcap Configuration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Fields</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch10s03.html">Prev</a> </td><th width="60%" align="center">Chapter 10. Managing External Viewers with Mailcap</th><td width="20%" align="right"> <a accesskey="n" href="ch10s05.html">Next</a></td></tr></table><hr></div><div class="section" title="Fields"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="idp6756400"></a>Fields</h2></div></div></div><p>Since mailcap handling is primarily for displaying of resources, all fields
like edit, print, compose etc. are ignored.</p><p>Note: Test commands are supported, but unfortunately, it's not possible to
provide the file when running the test. So any test that requires a file will
be considered failed and the handler will not be used.</p><p>Unfortunately, there are no <span class="emphasis"><em>native</em></span> support for the copiousoutput field.  The
field basically mean <span class="emphasis"><em>needs pager</em></span>. So it is handled by appending a pipe and a
pager program to the command. The pager program will be read from the <code class="literal">PAGER</code>
environment variable. If this fails, test are made for common pager programs
(<code class="literal">/usr/bin/pager</code>, <code class="literal">/usr/bin/less</code> and <code class="literal">/usr/bin/more</code> in that order). So if you
define png2ascii as your handler for image/png and specify copiousoutput then
the executed command will be "<code class="literal">png2ascii |/usr/bin/less</code>" if less is your pager
or present on your system.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch10s03.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch10.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch10s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Reading of Mailcap Files </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Mailcap Configuration</td></tr></table></div></body></html>