home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
timezn_c.zip
/
Timezon1.txt
next >
Wrap
Internet Message Format
|
1996-04-25
|
3KB
From: whgiii@amaranth.com
Reply-to: William H. Geiger <whgiii@amaranth.com>
Return-receipt-to: William H. Geiger <whgiii@amaranth.com>
Date: Thu, 25 Apr 96 08:47:27 -0600
To: mr2ice.list@secant.com
Subject: Rexx Time Zone Conversion Script
Cc: Nick@secant.com
Well it's finally done!!
I have just finshed a pair of rexx scripts that will convert the Time/Date
Stamp on messages to reflect the local time of the receiver rather than
the local time of the sender.
These scripts are available from my web page as Timezone.zip. This file
will contain 3 files Timezone.cmd, Tz1.cmd, & Readme.1st.
Timezone.cmd - Rexx script that converts date/time stamp in MR/2 index
files & calls Tz1.cmd Tz1.cmd - Rexx script that converts date/time stamp
in message header. Readme.1st - Copy of this message.
This can only be run off-line (While MR/2 is not running). This has to do
with the way MR/2 handles index files while folder are open. Nick is
working on a fix for this & I hope to have a version out that can be
called from a filter soon.
After you download Timezone.zip move it to your mr2ice folder and unzip
it. You will have to edit the 13th line of the Tz1.cmd file. Below is the
13th line of the script:
tz=-0600
You need to change the value to reflect your time zone. As an example for
Eastern Time Zone you would change the line to:
tz=-0500
That's it save the file and you are ready to go. Below are the timezone
values for the U.S.:
Eastern -0500
Central -0600
Mountian -0700
Pacific -0800
If you don't know what value to use for your timezone drop me a not with
your location & I will send you the value.
To convert the time/date stamps follow the steps below:
Open an OS/2 window
change directory to your mr/2ice directory
type timezone 'username' where username is the username you wish to
change the messages for. As an example if
you are the only user set-up for MR/2 Ice you would type timezone
mail.
That's it!!
You will see a start time, a list of folders as they are processed, & an
end time. I ran this on my system with 10 folders & 1200 messages. It took
less than 1 min. to complete.
There is one drawback to this set-up. Not everyone is sending messages
with the proper TimeZone stamp in the header. When I ran this on my system
I had 290 out of 1200 messages that had improper TimeZones. If the script
incounter a improper TimeZone it does not change the message & writes a
line to error.log in your mr2ice folder with the message file name & what
caused the error.
That should cover everything. I will have the file on my website this
morning so download it & give it a try.
Let me know what you think.
--
-----------------------------------------------------------
William H. Geiger III http://www.amaranth.com/~whgiii
Geiger Consulting WebExplorer & Java Enhanced!!!
Finger whgiii@amaranth.com for PGP Key and other info
-----------------------------------------------------------