Re: Macro help needed - Thanks!

2003-09-18 Thread Marck D Pearlstone
Hi John,

@18-Sep-2003, 17:33 +1000 (08:33 UK time) John Phillips [JP] in
mid:[EMAIL PROTECTED] said to Bat:

JP ... if my day is one day ahead than the sending time (because of
JP time zone differences), this is not indicated at all. Just the
JP local time still.

First allow me to *plead* with you to check your new message and
reply templates for TBUDL and modify the %TO= to %TO=''%TO= to
ensure that only one address survives the experience and we stop
seeing two of your posts.

Now, on to the question.

I use a far more complicated version of the date formatter that can
be modified to help you but spreads of a series of QTs. Just use
%QINCLUDE=DATER in a reply template or greeting line formatter QT.

,--/ DATER \--
[EMAIL PROTECTED](SDate), %QINCLUDE(TMGET) %-
%IF:'%QINCLUDE(TMGET)''%ODATE(hh:nn)':%-
'%QINCLUDE(TMZONE) (%-
%IF:#%QINCLUDE(TMDATE)##%ODATE(dd mmm )#:%-
#%DATE(dd/mm/)#%-
%OTIME local time)':''_
`-8-

,--/ SDATE \--
%SETPATTREGEXP=(?im-s)^Date:.*?\s(\d{1,2})\s%-
%REGEXPMATCH=%HEADERS-%-
%SETPATTREGEXP='(?im-s)^Date:.*?\s\d{1,2}\s(...)'%-
%REGEXPMATCH='%Headers'-%-
%SETPATTREGEXP=(?im-s)^Date:.*?\s(\d{4})%-
%REGEXPMATCH=%Headers
`-8-

,--/ TMGET \--
%SETPATTREGEXP=(?im-s)^Date\:.*?([\d]{0,2}\:[\d]{0,2})%-
\:[\d]{0,2}.*?([-+]\d{4})%-
%REGEXPBLINDMATCH=%HEADERS%SUBPATT=1
`-8-

,--/ TMZONE \--
%SETPATTREGEXP=(?m-s)^Date:.*\d\d:\d\d:\d\d.*([+-]\d\d\d\d)%-
%REGEXPBLINDMATCH=%HEADERS%SUBPATT=1
`-8-

,--/ TMDATE \--
%SETPATTREGEXP=(?im-s)^Date\:.*?,\s([\d]{0,2}\s[\S]{0,3}%-
\s[\d]{0,4})%-
%REGEXPBLINDMATCH=%HEADERS%SUBPATT=1
`-8-

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.00.6 on Windows XP 5.1.2600 Service Pack 1


pgp0.pgp
Description: PGP signature

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

Re: Macro help needed - Thanks!

2003-09-18 Thread John Phillips
Hi Marck,
On Thu, 18 Sep 2003, at 09:44:10 [GMT +0100] (which was 18:44 where I
live) you wrote:


 First allow me to *plead* with you to check your new message and
 reply templates for TBUDL and modify the %TO= to %TO=''%TO= to
 ensure that only one address survives the experience and we stop
 seeing two of your posts.


I plead guilty.

Macro challenged.  This is what I use, and not sure from your post
how to correct:_

%TO=[EMAIL PROTECTED]

(Apologies for double posting).

Exactly how should this be fixed.

Also which one of the three macros you posted should I use?

-- 
John Phillips, Sydney, Australia

Using The Bat! v2.00.6 on Windows XP 5.1 Build  2600
Service Pack 1 

Hah! If only BELL knew what I was doò2šþ­ãbœ— NO CARRIER



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


Re: Macro help needed - Thanks!

2003-09-18 Thread Marck D Pearlstone
Hi John,

@18-Sep-2003, 19:28 +1000 (10:28 UK time) John Phillips [JP] in
mid:[EMAIL PROTECTED] said to Marck:

 First allow me to *plead* with you to check your new message and
 reply templates for TBUDL and modify the %TO= to %TO=''%TO= to
 ensure that only one address survives the experience and we stop
 seeing two of your posts.

JP Macro challenged.  This is what I use, and not sure from your
JP post how to correct:_

JP %TO=[EMAIL PROTECTED]

%TO=%TO=[EMAIL PROTECTED] for new messages
%TO=''%TO='%OFROMFNAME on TBUDL [EMAIL PROTECTED] for
replies.

JP Also which one of the three macros you posted should I use?

Erm - all? They were nested quick templates, all interdependent. And
I count five. As I said in the original posting, 'Just use
%QINCLUDE=DATER in a reply template or greeting line formatter
QT.'

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.00.6 on Windows XP 5.1.2600 Service Pack 1


pgp0.pgp
Description: PGP signature

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

Re: Macro help needed - Thanks!

2003-09-18 Thread Robin Anson
On Thu 18 September 2003, 17:33:28 +1000, John Phillips wrote:
 I use this macro in replies
 
 %WRAPPED='%SETPATTREGEXP=(?m-s)^Date\:\s*?((.*?[\d]{4})\s*?([\d]{0,2}\:%-
 [\d]{0,2}\:[\d]{0,2})\s*?(.*))%-
 %REGEXPBLINDMATCH=%HEADERS%-
 On%SUBPATT=2, at %SUBPATT=3 [GMT%SUBPATT=4] %-
 (which was %OTIME where I live) you wrote:'
 
 which translates the received time to my local time (GMT +10).
 However if my day is one day ahead than the sending time (because of
 time zone differences), this is not indicated at all. Just the local
 time still.
 
 Can a macro - RegExP expert help here?

Well, I don't claim to be a Regexp expert, but the following checks
the day in your timezone to the day in the sender's, and if they are
different, inserts your day and time, otherwise just your time.

%WRAPPED='%SETPATTREGEXP=(?m-s)^Date:\s*(((.*?),.*?[\d]{4})\s*([\d]{0,2}:%-
[\d]{0,2}:[\d]{0,2})\s*(.*))%-
%REGEXPBLINDMATCH=%HEADERS%-
On %SUBPATT=2, at %SUBPATT=4 [GMT%SUBPATT=5] %-
(which was %-
%IF:_%SUBPATT=3__%ODate=ddd_%-
:_%ODate=ddd, h:mm:ss_%-
:_%ODate=h:mm:ss_ where I live) you wrote:'

--
Robin Anson
Using The Bat! v2.00.6 on Windows XP 5.1 Build 2600
Service Pack 1





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


Re: Macro help needed - Thanks!

2003-09-18 Thread John Phillips
Hi Robin,
On Thu, 18 Sep 2003, at 21:39:13 [GMT+1000] (which was 21:39:13 where
I live) you wrote:



 Well, I don't claim to be a Regexp expert, but the following checks
 the day in your timezone to the day in the sender's, and if they are
 different, inserts your day and time, otherwise just your time.



Thanks!

Another Aussie!

-- 
John Phillips, Sydney, Australia

Using The Bat! v2.00.6 on Windows XP 5.1 Build  2600
Service Pack 1 

Why do they tell us to watch The Today Show tomorrow? 



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


Re: Macro help needed - Thanks!

2003-09-18 Thread Robin Anson
On Fri 19 September 2003, 5:50:31 +1000, John Phillips wrote:
 Another Aussie!

Yes, and since I'm in Victoria I have the black  white flag up this
weekend. :)

Oops that way OT!

Robin

--
Robin Anson
Using The Bat! v2.00.6 on Windows XP 5.1 Build 2600
Service Pack 1





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


Re: Macro help needed - Thanks!

2003-09-18 Thread Martin Webster
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1




Hello Marck,

On 18 September 2003, 10:59 Marck on TBUDL in
mid:[EMAIL PROTECTED] wrote:

MDP %TO=%TO=[EMAIL PROTECTED] for new messages
MDP %TO=''%TO='%OFROMFNAME on TBUDL [EMAIL PROTECTED] for
MDP replies.

I couldn't get the reply macro to work and adapted it thus:

%TO=''%TO=%OFROMFNAME on TBUDL [EMAIL PROTECTED]

Is this correct? Or should it be:

%TO=''%TO='%OFROMFNAME on TBUDL [EMAIL PROTECTED]'

And while I'm here a couple more macro questions:

How do you define the prefix; e.g. MDP?
Each macro seems to add an extra line to the message. How can I avoid
this? Do you have to string them altogether?


- --
Best regards,
Martin Webster

The Bat! 2.00.6 (Windows XP Professional Service Pack 1)

-BEGIN PGP SIGNATURE-
Version: PGP SDK 3.0.2

iQA/AwUBP2ornFv+PP8p0/caEQKJzACeKm2liykUt+e7oZWy9ewj4ayMl00AnRef
XforMDV8o9E1yuHKr4ZWrAuP
=02rK
-END PGP SIGNATURE-



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


Re: Macro help needed - Thanks!

2003-09-18 Thread Marck D Pearlstone
Hi Martin,

@18-Sep-2003, 23:03 Martin Webster [MW] in
mid:[EMAIL PROTECTED] said to Marck:

MDP %TO=%TO=[EMAIL PROTECTED] for new messages
MDP %TO=''%TO='%OFROMFNAME on TBUDL [EMAIL PROTECTED]
MDP for replies.

MW I couldn't get the reply macro to work and adapted it thus:

MW %TO=''%TO=%OFROMFNAME on TBUDL [EMAIL PROTECTED]

MW Is this correct? Or should it be:

MW %TO=''%TO='%OFROMFNAME on TBUDL [EMAIL PROTECTED]'

It should be the latter to cater for names that include any special
characters. I personally use
%TO=''%TO='%OFROMNAME on TBUDL [EMAIL PROTECTED]'%-
to give the full name.

MW And while I'm here a couple more macro questions:

MW How do you define the prefix; e.g. MDP?

I use the Initials macro set on the FAQ Macro Library, although
that may need the v2 update treatment.

MW Each macro seems to add an extra line to the message. How can I
MW avoid this? Do you have to string them altogether?

That works. What works better is to use the %- pair at the end of a
line of macros when you don't want the newline to appear in the
generated text.

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.00.6 on Windows XP 5.1.2600 Service Pack 1


pgp0.pgp
Description: PGP signature

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

Re: Macro help needed - Thanks!

2003-09-18 Thread Martin Webster
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Marck,

On 18 September 2003, 23:14 Marck on TBUDL [MDP]in
mid:[EMAIL PROTECTED] wrote:

MDP It should be the latter to cater for names that include any special
MDP characters. I personally use
MDP %TO=''%TO='%OFROMNAME on TBUDL [EMAIL PROTECTED]'%-
MDP to give the full name.

Cheers! That's what I'm going with.

MW How do you define the prefix; e.g. MDP?

MDP I use the Initials macro set on the FAQ Macro Library, although
MDP that may need the v2 update treatment.

Seems to work as is. Time will tell.

MW Each macro seems to add an extra line to the message. How can I
MW avoid this? Do you have to string them altogether?

MDP That works. What works better is to use the %- pair at the end of a
MDP line of macros when you don't want the newline to appear in the
MDP generated text.

Thanks, very helpful.

- --
Best regards,
Martin Webster

The Bat! 2.00.6 (Windows XP Professional Service Pack 1)

-BEGIN PGP SIGNATURE-
Version: PGP SDK 3.0.2

iQA/AwUBP2ozW1v+PP8p0/caEQLdmACaApG81cQH0YKHso0m/e4BqbyXhtYAn2HW
M4wCft1DcUb6k7myejFus6AL
=8efj
-END PGP SIGNATURE-



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