[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doubt
On December 2, 2000 at 18:37, "leo.ufv" wrote:
> Is there a variable in mhonarc that do the same that
> $TOADDRNAME$ ? I need to use mhonarc for more than one
> user. I need to do the following: <a href="../users/
> $userid/outbox/msg$MSGNUM$.html"><strong>$SUBJECTNA$</str
> ong></a> - "$userid" is a variable of my perl script.
> I did <a
> href="../users/ljs/outbox/msg$MSGNUM$.html"><strong>$SUBJ
> ECTNA$</strong></a>, for only one user ("ljs", in this
> case).
I'm unsure on some of the details of what you are doing, but
may be the following may work for you:
What you can do is use the DEFINEVAR resource to define
a custom variable that contains the userid you need and reference
the custom variable. For example:
shell> mhonarc -definevar USERID="ljs" ...
And in your layout resource, you have:
<a href="../users/$USERID$/outbox/msg$MSGNUM$.html">...
If calling mhonarc within a perl program, you can do:
mhonarc::process_input(
'-definevar', 'USERID='.$userid,
## other options here
);
--ewh
[Index of Archives]
[Bugtraq]
[Yosemite News]
[Mhonarc Home]