<html>
<head>
<title>MHonArc Resources: ADDRESSMODIFYCODE</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="add.html">ADD</a>]</td><td><nobr>[<a href="../resources.html#addressmodifycode">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="afs.html">AFS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<h1>ADDRESSMODIFYCODE</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>
<code>M2H_ADDRESSMODIFYCODE=<var>Perl_expressions</var></code>
</p>
</dd>
<dt><strong>Element</strong></dt>
<dd><p>
<code><ADDRESSMODIFYCODE></code><br>
<var>Perl expressions...</var><br>
<code></ADDRESSMODIFYCODE></code><br>
</p>
</dd>
<dt><strong>Command-line Option</strong></dt>
<dd><p>
<code>-addressmodifycode </code><var>Perl_expressions</var>
</p>
</dd>
</dl>
<!-- *************************************************************** -->
<hr>
<h2><a name="description">Description</a></h2>
<p>ADDRESSMODIFYCODE defines Perl expressions to
apply to addresses in message headers and to
addresses in text bodies of messages if the
<a href="modifybodyaddresses.html">MODIFYBODYADDRESSES</a> is active.
</p>
<p>When defining the expressions, the mail address will be in
the <b><tt>$_</tt></b> variable. The value of <b><tt>$_</tt></b>
after all expressions are evaluated is the address MHonArc will
print.
</p>
<table class="note" width="100%">
<tr valign=top>
<td><a name="note1"><strong>NOTE:</strong></a></td>
<td width="100%"><p>ADDRESSMODIFYCODE only affects the display text of the
address. For <strong>message headers</strong>, when
<a href="mailto.html">MAILTO</a> is active, the
URL of the link is <b>NOT</b> affected by ADDRESSMODIFYCODE.
<a href="mailtourl.html">MAILTOURL</a> can be used to modify the
URL.
</p>
</td>
</tr>
</table>
<!-- *************************************************************** -->
<hr>
<h2><a name="default">Default Setting</a></h2>
<p>Nil.
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="rcvars">Resource Variables</a></h2>
<p>N/A
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="examples">Examples</a></h2>
<p>ADDRESSMODIFYCODE's main use is to obfuscate addresses,
or hide them entirely, to
prevent spam address harvesters from getting user addresses from
MHonArc archives. Here is an example that performs a ROT13 to
provide some simple obfuscation:
</p>
<pre class="code">
<b><AddressModifyCode></b>
tr/A-Za-z/N-ZA-Mn-za-m/;
<b></AddressModifyCode></b>
</pre>
<p>However, this may not be enough since an intelligent harvester
may try a ROT13. To completely hide the address, do something like
this:
</p>
<pre class="code">
<b><AddressModifyCode></b>
$_ = 'address<!--
-->@<!--
-->hidden';
<b></AddressModifyCode></b>
</pre>
<p>You cannot rely on ADDRESSMODIFYCODE alone to
hide/obfuscate addresses (see <a href="#note1">NOTE</a> above).
See the <a href="spammode.html">SPAMMODE</a> resource if you are
interested in fighting address harvesting.
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="version">Version</a></h2>
<p>2.4.0
</p>
<!-- *************************************************************** -->
<hr>
<h2><a name="seealso">See Also</a></h2>
<p>
<a href="mailto.html">MAILTO</a>,
<a href="mailtourl.html">MAILTOURL</a>,
<a href="modifybodyaddresses.html">MODIFYBODYADDRESSES</a>,
<a href="spammode.html">SPAMMODE</a>
</p>
<!-- *************************************************************** -->
<hr>
<!--x-rc-nav-->
<table border=0><tr valign="top">
<td align="left" width="50%">[Prev: <a href="add.html">ADD</a>]</td><td><nobr>[<a href="../resources.html#addressmodifycode">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="afs.html">AFS</a>]</td></tr></table>
<!--/x-rc-nav-->
<hr>
<address>
$Date: 2005/05/13 00:00:36 $ <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>