Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / doc / MHonArc / resources / subjectstripcode.html
CommitLineData
86530b38
AT
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
2<html>
3<head>
4<title>MHonArc Resources: SUBJECTSTRIPCODE</title>
5</head>
6<body>
7<!--x-rc-nav-->
8<table border=0><tr valign="top">
9<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>
10<!--/x-rc-nav-->
11<hr>
12<h1>SUBJECTSTRIPCODE</h1>
13
14<!-- *************************************************************** -->
15<hr>
16<h2>Syntax</h2>
17
18<dl>
19
20<dt><strong>Envariable</strong></dt>
21<dd><p>
22<code>M2H_SUBJECTSTRIPCODE=<var>Perl_expressions</var></code>
23</p>
24</dd>
25
26<dt><strong>Element</strong></dt>
27<dd><p>
28<code>&lt;SUBJECTSTRIPCODE&gt;</code><br>
29<var>Perl expressions...</var><br>
30<code>&lt;/SUBJECTSTRIPCODE&gt;</code><br>
31</p>
32</dd>
33
34<dt><strong>Command-line Option</strong></dt>
35<dd><p>
36<code>-subjectstripcode <var>Perl_expressions</var></code>
37</p>
38</dd>
39
40</dl>
41
42<!-- *************************************************************** -->
43<hr>
44<h2>Description</h2>
45
46<p>SUBJECTSTRIPCODE may be used to define Perl expressions to
47apply to message subjects when parsed by MHonArc. The main use
48of the resource is to edit message subjects before stored in
49the archive.
50</p>
51<p>When defining the expressions, the subject text will be in
52the <b><tt>$_</tt></b> variable. The value of <b><tt>$_</tt></b>
53after all expressions are evaluated is the subject MHonArc will
54use for the message.
55</p>
56
57<!-- *************************************************************** -->
58<hr>
59<h2>Default Setting</h2>
60
61<p>Nil
62</p>
63
64<!-- *************************************************************** -->
65<hr>
66<h2>Resource Variables</h2>
67
68<p>N/A
69</p>
70
71<!-- *************************************************************** -->
72<hr>
73<h2>Examples</h2>
74
75<p>Some mailing lists prefix all message subjects with a list
76identifier so subscribers can easily denote message from the list
77when received. However, the prefix can clutter MHonArc indexes.
78The SUBJECTSTRIPCODE can be used to strip the prefixes before
79messages are stored in the archive.
80</p>
81<p>If the prefix is something like the following,
82</p>
83<pre>
84[LIST-NAME]:
85</pre>
86<p>the following SUBJECTSTRIPCODE setting can be used:
87</p>
88<pre>
89s/^\[LIST-NAME\]://;
90</pre>
91
92<!-- *************************************************************** -->
93<hr>
94<h2>Version</h2>
95
96<p>2.3.0
97</p>
98
99<!-- *************************************************************** -->
100<hr>
101<h2>See Also</h2>
102
103<p>
104</p>
105
106<!-- *************************************************************** -->
107<hr>
108<!--x-rc-nav-->
109<table border=0><tr valign="top">
110<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>
111<!--/x-rc-nav-->
112<hr>
113<address>
114$Date: 2002/07/27 05:13:11 $ <br>
115<img align="top" src="../monicon.png" alt="">
116<a href="http://www.mhonarc.org/"
117><strong>MHonArc</strong></a><br>
118Copyright &#169; 1998, <a href="http://www.earlhood.com/"
119>Earl Hood</a>, <a href="mailto:mhonarc@mhonarc.org"
120>mhonarc@mhonarc.org</a><br>
121</address>
122
123</body>
124</html>