Hello Joseph, 

On Sat, 12 Oct 2002 at 12:48:02 [GMT -0500], you wrote:
JN> The 'date' field in my print template has the creation date in
JN> local time (%ODateEn %OTimeLongEn). I'd like to add, in
JN> parentheses after that time, the date/time that the message was
JN> created in the time zone where it was created, just like it is
JN> displayed in the message viewer. I cannot find how to do this.
JN> Anyone know?

The answer is something similar to the REPLY macro Januk wrote way
back when. You'll need both the below lines.

,-----
| 
|%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPBLINDMATCH="%HEADERS"
| 
| Printed: %ODateEN %OTimeLongEn (%SUBPATT="3" [GMT%SUBPATT="4"])
`-----

Here's what my print template looks like after being modified.

,-----
| %TEXT
| 
| -=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Received: %ODATE at %OTIME
| 
|%SETPATTREGEXP="(?m-s)Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:[\d]{0,2}\:[\d]{0,2})\s*?(.*))"%REGEXPBLINDMATCH="%HEADERS"
| Printed: %ODateEN %OTimeLongEn (%SUBPATT="3" [GMT%SUBPATT="4"])
| Message located at %ACCOUNTNAME / %FOLDERNAME
`-----

Note, to keep the text clean and delineated, I used box quoting. You
don't need the below part in your template.

,-----
|
| 
|
`-----

Take care.



Cheers,
Leif Gregory 

-- 
List Moderator (and fellow registered end-user)
PCWize Editor  /  ICQ 216395  /  PGP Key ID 0x7CD4926F
Web Site <http://www.PCWize.com>
TB FAQ   <http://www.silverstones.com/thebat/FAQ.html>
Using The Bat! 1.61 under Windows 2000 5.0 Build 2195 Service Pack 3 
on a P4 1.6Ghz OC'd to 2.32Ghz with 512MB.

Tagline of the day:
Light travels faster than sound. This is why some people appear bright
until you hear them speak.


________________________________________________
Current version is 1.61 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to