/usr/share/doc/mhonarc/resources/mimedecoders.html is in mhonarc 2.6.19-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | <html>
<head>
<title>MHonArc Resources: MIMEDECODERS</title>
<link rel="stylesheet" type="text/css" href="../docstyles.css">
</head>
<body>
<!--x-rc-nav-->
<table border=0><tr valign="top">
<td align="left" width="50%">[Prev: <a href="mimeargs.html">MIMEARGS</a>]</td><td><nobr>[<a href="../resources.html#mimedecoders">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="mimeexcs.html">MIMEEXCS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<h1>MIMEDECODERS</h1>
<!--X-TOC-Start-->
<ul>
<li><a href="#syntax">Syntax</a>
<li><a href="#description">Description</a>
<li><a href="#default">Default Setting</a>
<li><a href="#rcvars">Resource Variables</a>
<li><a href="#examples">Examples</a>
<li><a href="#version">Version</a>
<li><a href="#seealso">See Also</a>
</ul>
<!--X-TOC-End-->
<!-- *************************************************************** -->
<hr>
<h2><a name="syntax">Syntax</a></h2>
<dl>
<dt><strong>Envariable</strong></dt>
<dd><p>N/A
</p>
</dd>
<dt><strong>Element</strong></dt>
<dd><p>
<code><MIMEDECODERS></code><br>
<var>decoder-specification</var><br>
<var>...</var><br>
<code></MIMEDECODERS></code><br>
</p>
</dd>
<dt><strong>Command-line Option</strong></dt>
<dd><p>N/A
</p>
</dd>
</dl>
<!-- *************************************************************** -->
<hr>
<h2><a name="description">Description</a></h2>
<p>The MIMEDECODERS resource specifies Perl routines to call
for decoding MIME encoded data. For message bodies, the encoding
is specified by the <tt>Content-Transfer-Encoding</tt> header
field. Data encoding can also occur for non-ASCII data in
message headers.
</p>
<p>The MIMEDECODERS resource can only be defined via the
resource file. Each line of the element specifies a encoding,
the Perl decoding routine, and the Perl source
file containing the routine.
</p>
<p>Example:</p>
<pre class="code">
<b><MIMEDecoders></b>
base64; base64::b64decode; base64.pl
<b></MIMEDecoders></b>
</pre>
<p>The first field is the encoding method. The second field
is the routine name (which should contain a package qualifier).
The third field is the source file the routine is defined. The
source file is optional if the routine is known to be defined in
an already listed source file.
</p>
<p>There are some special decoder routines
values. They are as follows:
</p>
<dl>
<dt><em>as-is</em></dt>
<dd><p>Leave the data "as-is".
</p>
</dd>
</dl>
<p>Each decoder function is invoked as follows:
</p>
<pre>
$decoded_data = &function($data);
</pre>
<!-- *************************************************************** -->
<hr>
<h2><a name="default">Default Setting</a></h2>
<pre class="code">
<b><MIMEDecoders></b>
7bit; as-is;
8bit; as-is;
binary; as-is;
base64; base64::b64decode; base64.pl
quoted-printable; quoted_printable::qprdecode; qprint.pl
x-uuencode; base64::uudecode; base64.pl
xuue; base64::uudecode; base64.pl
uuencode; base64::uudecode; base64.pl
<b></MIMEDecoders></b>
</pre>
<!-- *************************************************************** -->
<hr>
<h2><a name="rcvars">Resource Variables</a></h2>
<p>N/A
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="examples">Examples</a></h2>
<p>The following example changes the base64 decoder to use the
MIME::Base64 module (available from CPAN):
</p>
<pre class="code">
<b><MIMEDecoders></b>
base64; MIME::Base64::decode_base64; MIME/Base64.pm
<b></MIMEDecoders></b>
</pre>
<!-- *************************************************************** -->
<hr>
<h2><a name="version">Version</a></h2>
<p>2.4.4
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="seealso">See Also</a></h2>
<p>
<a href="charsetconverters.html">CHARSETCONVERTERS</a>,
<a href="mimefilters.html">MIMEFILTERS</a>,
<a href="perlinc.html">PERLINC</a>
</p>
<!-- *************************************************************** -->
<hr>
<!--x-rc-nav-->
<table border=0><tr valign="top">
<td align="left" width="50%">[Prev: <a href="mimeargs.html">MIMEARGS</a>]</td><td><nobr>[<a href="../resources.html#mimedecoders">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="mimeexcs.html">MIMEEXCS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<address>
$Date: 2005/05/13 18:50:38 $ <br>
<img align="top" src="../monicon.png" alt="">
<a href="http://www.mhonarc.org/"
><strong>MHonArc</strong></a><br>
Copyright © 1999, <a href="http://www.earlhood.com/"
>Earl Hood</a>, <a href="mailto:mhonarc%40mhonarc.org"
>mhonarc<!--
-->@<!--
-->mhonarc.org</a><br>
</address>
</body>
</html>
|