home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / timezn_c.zip / Timezon1.txt next >
Internet Message Format  |  1996-04-25  |  3KB

  1. From: whgiii@amaranth.com
  2. Reply-to: William H. Geiger <whgiii@amaranth.com>
  3. Return-receipt-to: William H. Geiger <whgiii@amaranth.com>
  4. Date: Thu, 25 Apr 96 08:47:27 -0600
  5. To: mr2ice.list@secant.com
  6. Subject: Rexx Time Zone Conversion Script
  7. Cc: Nick@secant.com
  8.  
  9. Well it's finally done!!
  10.  
  11. I have just finshed a pair of rexx scripts that will convert the Time/Date
  12. Stamp on messages to reflect the local time of the receiver rather than
  13. the local time of the sender.
  14.  
  15. These scripts are available from my web page as Timezone.zip. This file
  16. will contain 3 files Timezone.cmd, Tz1.cmd, & Readme.1st.
  17.  
  18. Timezone.cmd - Rexx script that converts date/time stamp in MR/2 index
  19. files & calls Tz1.cmd Tz1.cmd - Rexx script that converts date/time stamp
  20. in message header. Readme.1st - Copy of this message. 
  21.  
  22. This can only be run off-line (While MR/2 is not running). This has to do
  23. with the way MR/2 handles index files while folder are open. Nick is
  24. working on a fix for this & I hope to have a version out that can be
  25. called from a filter soon.
  26.  
  27. After you download Timezone.zip move it to your mr2ice folder and unzip
  28. it. You will have to edit the 13th line of the Tz1.cmd file. Below is the
  29. 13th line of the script:
  30.  
  31. tz=-0600
  32.  
  33. You need to change the value to reflect your time zone. As an example for
  34. Eastern Time Zone you would change the line to:
  35.  
  36. tz=-0500
  37.  
  38. That's it save the file and you are ready to go. Below are the timezone
  39. values for the U.S.:
  40.  
  41. Eastern   -0500
  42. Central   -0600
  43. Mountian -0700
  44. Pacific    -0800
  45.  
  46. If you don't know what value to use for your timezone drop me a not with
  47. your location & I will send you the value.
  48.  
  49. To convert the time/date stamps follow the steps below:
  50.  
  51. Open an OS/2 window
  52. change directory to your mr/2ice directory
  53. type timezone 'username'  where username is the username you wish to
  54. change the messages for. As an example if  
  55.          you are the only user set-up for MR/2 Ice you would type timezone
  56. mail.
  57.  
  58. That's it!!
  59.  
  60. You will see a start time, a list of folders as they are processed, & an
  61. end time. I ran this on my system with 10 folders & 1200 messages. It took
  62. less than 1 min. to complete. 
  63.  
  64. There is one drawback to this set-up. Not everyone is sending messages
  65. with the proper TimeZone stamp in the header. When I ran this on my system
  66. I had 290 out of 1200 messages that had improper TimeZones. If the script
  67. incounter a improper TimeZone it does not change the message & writes a
  68. line to error.log in your mr2ice folder with the message file name & what
  69. caused the error.
  70.  
  71. That should cover everything. I will have the file on my website this
  72. morning so download it & give it a try.
  73.  
  74. Let me know what you think.
  75.                             
  76. --
  77. -----------------------------------------------------------
  78. William H. Geiger III  http://www.amaranth.com/~whgiii
  79. Geiger Consulting    WebExplorer & Java Enhanced!!!
  80.  
  81. Finger whgiii@amaranth.com for PGP Key and other info
  82. -----------------------------------------------------------
  83.  
  84.