Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / doc / MHonArc / resources / subjectstripcode.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
<html>
<head>
<title>MHonArc Resources: SUBJECTSTRIPCODE</title>
</head>
<body>
<!--x-rc-nav-->
<table border=0><tr valign="top">
<td align="left" width="50%">[Prev:&nbsp;<a href="subjectreplyrxp.html">SUBJECTREPLYRXP</a>]</td><td><nobr>[<a href="../resources.html#subjectstripcode">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next:&nbsp;<a href="subjectthreads.html">SUBJECTTHREADS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<h1>SUBJECTSTRIPCODE</h1>
<!-- *************************************************************** -->
<hr>
<h2>Syntax</h2>
<dl>
<dt><strong>Envariable</strong></dt>
<dd><p>
<code>M2H_SUBJECTSTRIPCODE=<var>Perl_expressions</var></code>
</p>
</dd>
<dt><strong>Element</strong></dt>
<dd><p>
<code>&lt;SUBJECTSTRIPCODE&gt;</code><br>
<var>Perl expressions...</var><br>
<code>&lt;/SUBJECTSTRIPCODE&gt;</code><br>
</p>
</dd>
<dt><strong>Command-line Option</strong></dt>
<dd><p>
<code>-subjectstripcode <var>Perl_expressions</var></code>
</p>
</dd>
</dl>
<!-- *************************************************************** -->
<hr>
<h2>Description</h2>
<p>SUBJECTSTRIPCODE may be used to define Perl expressions to
apply to message subjects when parsed by MHonArc. The main use
of the resource is to edit message subjects before stored in
the archive.
</p>
<p>When defining the expressions, the subject text will be in
the <b><tt>$_</tt></b> variable. The value of <b><tt>$_</tt></b>
after all expressions are evaluated is the subject MHonArc will
use for the message.
</p>
<!-- *************************************************************** -->
<hr>
<h2>Default Setting</h2>
<p>Nil
</p>
<!-- *************************************************************** -->
<hr>
<h2>Resource Variables</h2>
<p>N/A
</p>
<!-- *************************************************************** -->
<hr>
<h2>Examples</h2>
<p>Some mailing lists prefix all message subjects with a list
identifier so subscribers can easily denote message from the list
when received. However, the prefix can clutter MHonArc indexes.
The SUBJECTSTRIPCODE can be used to strip the prefixes before
messages are stored in the archive.
</p>
<p>If the prefix is something like the following,
</p>
<pre>
[LIST-NAME]:
</pre>
<p>the following SUBJECTSTRIPCODE setting can be used:
</p>
<pre>
s/^\[LIST-NAME\]://;
</pre>
<!-- *************************************************************** -->
<hr>
<h2>Version</h2>
<p>2.3.0
</p>
<!-- *************************************************************** -->
<hr>
<h2>See Also</h2>
<p>
</p>
<!-- *************************************************************** -->
<hr>
<!--x-rc-nav-->
<table border=0><tr valign="top">
<td align="left" width="50%">[Prev:&nbsp;<a href="subjectreplyrxp.html">SUBJECTREPLYRXP</a>]</td><td><nobr>[<a href="../resources.html#subjectstripcode">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next:&nbsp;<a href="subjectthreads.html">SUBJECTTHREADS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<address>
$Date: 2002/07/27 05:13:11 $ <br>
<img align="top" src="../monicon.png" alt="">
<a href="http://www.mhonarc.org/"
><strong>MHonArc</strong></a><br>
Copyright &#169; 1998, <a href="http://www.earlhood.com/"
>Earl Hood</a>, <a href="mailto:mhonarc@mhonarc.org"
>mhonarc@mhonarc.org</a><br>
</address>
</body>
</html>