Hi,
Thanks for your reply.
The following two paragraphs from our rcfile illustrate the problem:
<!-- ==================================================================== -->
<!-- FIRSTDATE -->
<!-- ==================================================================== -->
<DefineVar>
FIRSTDATE
eval $tmp = $Date{$MListOrder[0]};
</DefineVar>
<!-- ==================================================================== -->
<!-- LASTDATE -->
<!-- ==================================================================== -->
<DefineVar>
LASTDATE
eval $tmp = $Date{$MListOrder[$#MListOrder]};
</definevar>
...
...
...
<b> Starting : </b><i>$FIRSTDATE$</i><br>
<b> Ending : </b><i>$LASTDATE$</i><br>
<b> Messages: </b><i>$NUMOFMSG$</i><br>
</p>
....
....
What we really want to do is to include the Starting and Ending date in the html
page.
I have tried with your suggest of $MSGGMTDATE(FIRST)$, however it gives GMT time
rather than
local time.
Would appreciate if you can help on how to fix the eval $tmp = $Date{$MListOrder[0]};
Thanks again.
Ben
From: Earl Hood <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Date: Thu, 07 Jun 2001 11:33:41 -0700
Message-Id: <[EMAIL PROTECTED]>
>> I wonder whether someone can help on this one.
> >
>> Before we run MHonArc 2.2.0, and no problem. Bow we installed the
>> V2.4.6, then the following line in the rcfile is not evaluated (should be the
> >
> >starting date of archives):
> > eval $tmp = $Date{$MListOrder[0]};
>>
>> we are running Perl 5.005.
>It helps to know where exactly in your resource file this statement
>exists. There are is only a very small set of resources that allow
>Perl code, and the code is evaluated within specific contexts.
>BTW, the information you are trying to retrieve is accessible via the
>message data resource variables specifying a mesg_spec argument. For
>example,
>
> $MSGGMTDATE(FIRST)$
>
>--ewh
-----Original Message-----
From: Tan, Ben (ITS, Limestone Ave) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 5:10 PM
To: '[EMAIL PROTECTED]'
Subject: eval problem in the rcfile
Hi,
I wonder whether someone can help on this one.
Before we run MHonArc 2.2.0, and no problem. Bow we installed the
V2.4.6, then the following line in the rcfile is not evaluated (should be the
starting date of archives):
eval $tmp = $Date{$MListOrder[0]};
we are running Perl 5.005.
Thanks very much.
Ben