Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN"> |
2 | <html> | |
3 | <head> | |
4 | <title>MHonArc Resources: ADDRESSMODIFYCODE</title> | |
5 | </head> | |
6 | <body> | |
7 | <!--x-rc-nav--> | |
8 | <table border=0><tr valign="top"> | |
9 | <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> | |
10 | <!--/x-rc-nav--> | |
11 | <hr> | |
12 | <h1>ADDRESSMODIFYCODE</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_ADDRESSMODIFYCODE=<var>Perl_expressions</var></code> | |
23 | </p> | |
24 | </dd> | |
25 | ||
26 | <dt><strong>Element</strong></dt> | |
27 | <dd><p> | |
28 | <code><ADDRESSMODIFYCODE></code><br> | |
29 | <var>Perl expressions...</var><br> | |
30 | <code></ADDRESSMODIFYCODE></code><br> | |
31 | </p> | |
32 | </dd> | |
33 | ||
34 | <dt><strong>Command-line Option</strong></dt> | |
35 | <dd><p> | |
36 | <code>-addressmodifycode </code><var>Perl_expressions</var> | |
37 | </p> | |
38 | </dd> | |
39 | ||
40 | </dl> | |
41 | ||
42 | <!-- *************************************************************** --> | |
43 | <hr> | |
44 | <h2>Description</h2> | |
45 | ||
46 | <p>ADDRESSMODIFYCODE may be used to define Perl expressions to | |
47 | apply to addresses in message headers during conversion. | |
48 | </p> | |
49 | <p>When defining the expressions, the mail address will be in | |
50 | the <b><tt>$_</tt></b> variable. The value of <b><tt>$_</tt></b> | |
51 | after all expressions are evaluated is the address MHonArc will | |
52 | print. | |
53 | </p> | |
54 | <table border=0 cellpadding=4> | |
55 | <tr valign=top> | |
56 | <td><a name="note1"><strong>NOTE</strong></a></td> | |
57 | <td><p>ADDRESSMODIFYCODE only affects the display text of the | |
58 | address. If <a href="mailto.html">MAILTO</a> is active, the | |
59 | URL of the link is <b>NOT</b> affected by ADDRESSMODIFYCODE. | |
60 | <a href="mailtourl.html">MAILTOURL</a> can be used to modify the | |
61 | URL. | |
62 | </p> | |
63 | </td> | |
64 | </tr> | |
65 | </table> | |
66 | ||
67 | <!-- *************************************************************** --> | |
68 | <hr> | |
69 | <h2>Default Setting</h2> | |
70 | ||
71 | <p>Nil. | |
72 | </p> | |
73 | ||
74 | <!-- *************************************************************** --> | |
75 | <hr> | |
76 | <h2>Resource Variables</h2> | |
77 | ||
78 | <p>N/A | |
79 | </p> | |
80 | ||
81 | <!-- *************************************************************** --> | |
82 | <hr> | |
83 | <h2>Examples</h2> | |
84 | ||
85 | <p>ADDRESSMODIFYCODE main use is to obfuscate addresses, | |
86 | or hide them entirely, to | |
87 | prevent spam address harvesters from getting user addresses from | |
88 | MHonArc archives. Here is an example that performs a ROT13 to | |
89 | provide some simple obfuscation: | |
90 | </p> | |
91 | <pre> | |
92 | <AddressModifyCode> | |
93 | tr/A-Za-z/N-ZA-Mn-za-m/; | |
94 | </AddressModifyCode> | |
95 | </pre> | |
96 | <p>However, this may not be enough since an intelligent harvester | |
97 | may try a ROT13. To completely hide the address, do something like | |
98 | this: | |
99 | </p> | |
100 | <pre> | |
101 | <AddressModifyCode> | |
102 | $_ = 'address@hidden'; | |
103 | </AddressModifyCode> | |
104 | </pre> | |
105 | <p>You cannot rely on ADDRESSMODIFYCODE alone to | |
106 | hide/obfuscate addresses (see <a href="#note1">NOTE</a> above). | |
107 | Also look at the <a href="spammode.html">SPAMMODE</a> if you are | |
108 | interested in fighting address harvesting. | |
109 | </p> | |
110 | ||
111 | <!-- *************************************************************** --> | |
112 | <hr> | |
113 | <h2>Version</h2> | |
114 | ||
115 | <p>2.4.0 | |
116 | </p> | |
117 | ||
118 | <!-- *************************************************************** --> | |
119 | <hr> | |
120 | <h2>See Also</h2> | |
121 | ||
122 | <p> | |
123 | <a href="mailto.html">MAILTO</a>, | |
124 | <a href="mailtourl.html">MAILTOURL</a>, | |
125 | <a href="spammode.html">SPAMMODE</a>, | |
126 | </p> | |
127 | ||
128 | <!-- *************************************************************** --> | |
129 | <hr> | |
130 | <!--x-rc-nav--> | |
131 | <table border=0><tr valign="top"> | |
132 | <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> | |
133 | <!--/x-rc-nav--> | |
134 | <hr> | |
135 | <address> | |
136 | $Date: 2002/07/27 05:13:10 $ <br> | |
137 | <img align="top" src="../monicon.png" alt=""> | |
138 | <a href="http://www.mhonarc.org/" | |
139 | ><strong>MHonArc</strong></a><br> | |
140 | Copyright © 1999, <a href="http://www.earlhood.com/" | |
141 | >Earl Hood</a>, <a href="mailto:mhonarc@mhonarc.org" | |
142 | >mhonarc@mhonarc.org</a><br> | |
143 | </address> | |
144 | ||
145 | </body> | |
146 | </html> |