<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML//EN">
<title>MHonArc Resources: MAILTOURL
</title>
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">[Prev:
<a href=
"mailto.html">MAILTO
</a>]
</td><td><nobr>[
<a href=
"../resources.html#mailtourl">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"main.html">MAIN
</a>]
</td></tr></table>
<!-- *************************************************************** -->
<dt><strong>Envariable
</strong></dt>
<code>M2H_MAILTOURL=
</code><var>URL-template
</var>
<dt><strong>Element
</strong></dt>
<code><MAILTOURL
><br></code>
<var>URL-template
</var><br>
<code></MAILTOURL
><br></code>
<dt><strong>Command-line Option
</strong></dt>
<code>-mailtourl
</code><var>URL-template
</var>
<!-- *************************************************************** -->
<p>The MAILTOURL defines the URL template for hyperlinking mail
addresses in message headers when the
<a href=
"mailto.html">MAILTO
</a> resource is active.
<DT><STRONG>NOTE
</STRONG>
<DD><P>The MAILTOURL resource has
different rules for variable expansion. If a
variable does not exactly match the set of variables available for
the MAILTOURL, the variable text will be taken literally
as part of the element content. Therefore, a single
"<CODE>$</CODE>"
can be used to represent a
"<CODE>$</CODE>" character.
</P>
variables in the MAILTOURL should
<STRONG>NOT
</STRONG>
have
"<CODE>:</CODE><VAR>NU</VAR>" modifier. This will prevent the
variables from be recognized.
<EM>MHonArc
</EM> will automatically
treat the replacement value as a part of a URL string.
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<h2>Resource Variables
</h2>
<th>Variable
</th><th>Value
</th>
<td align=center
><a name=
"FROMADDR" href=
"../rcvars.html#FROMADDR"><strong><code>$FROMADDR$
</code></strong></a></td>
<td>The e-mail address in the
<tt>From:
</tt> field of the message.
</td>
<td align=center
><a name=
"FROMADDRDOMAIN" href=
"../rcvars.html#FROMADDRDOMAIN"><strong><code>$FROMADDRDOMAIN$
</code></strong></a></td>
<td>The e-mail address domain of the
<tt>From:
</tt> field of the message.
</td>
<td align=center
><a name=
"FROMADDRNAME" href=
"../rcvars.html#FROMADDRNAME"><strong><code>$FROMADDRNAME$
</code></strong></a></td>
<td>The e-mail address
"username" (or local-part) of the
<tt>From:
</tt> field of the message.
</td>
<td align=center
><a name=
"FROMNAME" href=
"../rcvars.html#FROMNAME"><strong><code>$FROMNAME$
</code></strong></a></td>
<td>The human name of the person in the
<tt>From:
</tt> field of the message. If no human name is found, the username specified in the e-mail address is used.
</td>
<td align=center
><a name=
"MSGGMTDATE" href=
"../rcvars.html#MSGGMTDATE"><strong><code>$MSGGMTDATE$
</code></strong></a></td>
<td>GMT date of current message.
</td>
<td align=center
><a name=
"MSGID" href=
"../rcvars.html#MSGID"><strong><code>$MSGID$
</code></strong></a></td>
<td>The message-id of the message.
</td>
<td align=center
><a name=
"MSGLOCALDATE" href=
"../rcvars.html#MSGLOCALDATE"><strong><code>$MSGLOCALDATE$
</code></strong></a></td>
<td>Local date of current message.
</td>
<td align=center
><a name=
"TO" href=
"../rcvars.html#TO"><strong><code>$TO$
</code></strong></a></td>
<td>The email address (MAILTOURL only).
</td>
<td align=center
><a name=
"TOADDRDOMAIN" href=
"../rcvars.html#TOADDRDOMAIN"><strong><code>$TOADDRDOMAIN$
</code></strong></a></td>
<td>The e-mail address domain (MAILTOURL only).
</td>
<td align=center
><a name=
"TOADDRNAME" href=
"../rcvars.html#TOADDRNAME"><strong><code>$TOADDRNAME$
</code></strong></a></td>
<td>The e-mail address
"username" (or local-part) (MAILTOURL only).
</td>
<!-- *************************************************************** -->
<p>The following example defines how MAILTOURL can be used
to have e-mail addresses linked to a CGI program:
/cgi-bin/mailform.cgi?to=$TO$;subject=$SUBJECT$;srcid=$MSGID$
<b></MailToURL
></b>
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<a href=
"mailto.html">MAILTO
</a>
<!-- *************************************************************** -->
<table border=
0><tr valign=
"top">
<td align=
"left" width=
"50%">[Prev:
<a href=
"mailto.html">MAILTO
</a>]
</td><td><nobr>[
<a href=
"../resources.html#mailtourl">Resources
</a>][
<a href=
"../mhonarc.html">TOC
</a>]
</nobr></td><td align=
"right" width=
"50%">[Next:
<a href=
"main.html">MAIN
</a>]
</td></tr></table>
$Date:
2002/
07/
27 05:
13:
10 $
<br>
<img align=
"top" src=
"../monicon.png" alt=
"">
<a href=
"http://www.mhonarc.org/"><strong>MHonArc
</strong></a><br>
Copyright
© 1997-
1998,
<a href=
"http://www.earlhood.com/">Earl Hood
</a>,
<a href=
"mailto:mhonarc@mhonarc.org">mhonarc@mhonarc.org
</a><br>