[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to introduce javascript
--- Aumont <serge.aumont@cru.fr> wrote:
> I want to introduce emails with the following javascript.
>
> <SCRIPT language=JavaScript>
> <!--
> document.write(\"<A HREF=\" + \"mailto:\" + \"$FROMADDRNAME$\" + \"@\" +
> \"$FROMADDRDOMAIN$\" + \">$FROMNAME$</A>\")
> // --></SCRIPT>";
You can only do this if you roll your own header with resource variables.
You can
use the EXCS resource to "null" out the regular message header.
If you want to do it with the regular mail header, it would currently
require some coding.
Note, the code is structured to potentially make the routine that converts
a message
header to HTML configurable. I.e. Have a resource that allows a user to
register
a Perl routine to convert the message header, overriding MHonArc's builtin
routine.
A less drastic feature would to have a resource that allows you to define
the address linking
template so you can do something like your example without have to do Perl
code.
This is something worth considering. Compatibility with existing resources
is something
that will need to checked.
--ewh
---------------------------------------------------------------------
To sign-off this list, send email to majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS
[Index of Archives]
[Bugtraq]
[Yosemite News]
[Mhonarc Home]