RE:regex/macro help needed

2004-08-29 Thread Jurgen Haug
Hello Robin,

Sunday, August 29, 2004, 12:55:27 AM, you wrote:


 On Sun 29 August 2004, 2:44:26 +1000, Jurgen Haug wrote:
 I have a little problem with a subject-modifier macro and need some help.
 
 Thank you for looking here: http://www.safaribears.de/help/regex.html

 As I understand it, you are trying to take a subject like
 :-* Re: something
 and extract
 something

 If that is correct, the problem with the regex is not with what you have
 added, it is that it starts with \A:?. This matches the first colon,
 then the :-\* re that you have added doesn't match what is left. You
 could add -\* re instead, or take out the :? at the beginning of your
 regex line.

thank  you!  that  did  the  trick! So this \A:? thingy isn't just looking for a
colon at the END? like actually it's :-* RE: and I thought that's the colon it's
looking for. This stuff is voodoo.

-- 
Best regards,
 Jürgen
:eu-flag3: :de-bw:

It's a woman's prerogative to change her mind.  For men it's called lying.

Using The Bat! v2.12.03, Opera v7.54.3865 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'

pgpgVZ9a3Cg3j.pgp
Description: PGP signature

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

Re: regex/macro help needed

2004-08-29 Thread Robin Anson
On Sun 29 August 2004, 16:09:31 +1000, Jurgen Haug wrote:
 thank  you!  that  did  the  trick! So this \A:? thingy isn't just looking for a
 colon at the END? like actually it's :-* RE: and I thought that's the colon it's
 looking for. This stuff is voodoo.

The \A locks the pattern to the beginning of the text you are
searching, so \A:? matches zero or one colon at the beginning if the
text. If you then search for :-\* further down the pattern, it will be
looking for a second colon (because \A:? matches the first) followed by a
dash and an asterisk.

-- 
Robin

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







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


RE:regex/macro help needed

2004-08-29 Thread Jurgen Haug
Hello Robin,

Sunday, August 29, 2004, 2:05:07 PM, you wrote:


 On Sun 29 August 2004, 16:09:31 +1000, Jurgen Haug wrote:
 thank  you!  that  did  the  trick! So this \A:? thingy isn't just looking for a
 colon at the END? like actually it's :-* RE: and I thought that's the colon it's
 looking for. This stuff is voodoo.

 The \A locks the pattern to the beginning of the text you are
 searching, so \A:? matches zero or one colon at the beginning if the
 text. If you then search for :-\* further down the pattern, it will be
 looking for a second colon (because \A:? matches the first) followed by a
 dash and an asterisk.

ah, I guess I get it now (for this time). You mean, my mistake was to think 'hey
I am giving him the :-* as a pattern, so I can forget about it, and after that I
started  looking  for  the  colon,  which came later :-* RE: -- here, BUT regex
couldn't care less about what *I* am thinking, since it will always look for the
first  colon,  no  matter  what pattern I am throwing at it, since this \A thing
tells him to do exactly that! right?

-- 
Best regards,
 Jürgen
:eu-flag3: :de-bw:

A duck walks into a drugstore and ask the clerk for chapstick. The clerk put the 
chapstick on the counter and says 'that will be $2' The duck replies 'Just put it on 
my bill'

Using The Bat! v2.12.03, Opera v7.54.3865 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'

pgpJpLN5pPAFU.pgp
Description: PGP signature

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

Re: regex/macro help needed

2004-08-29 Thread Robin Anson
On Sun 29 August 2004, 22:40:41 +1000, Jurgen Haug wrote:
 ah, I guess I get it now (for this time). You mean, my mistake was to think 'hey
 I am giving him the :-* as a pattern, so I can forget about it, and after that I
 started  looking  for  the  colon,  which came later :-* RE: -- here, BUT regex
 couldn't care less about what *I* am thinking, since it will always look for the
 first  colon,  no  matter  what pattern I am throwing at it, since this \A thing
 tells him to do exactly that! right?

That's right. It is always looking at the very beginning for zero or one colon,
followed by zero or more spaces, followed by zero or one sets of square
brackets with anything in them. Then it looks for any of the expressions
re, aw, antwort, etc.

-- 
Robin

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







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


regex/macro help needed

2004-08-28 Thread Jurgen Haug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo Fledermäuse,

I have a little problem with a subject-modifier macro and need some help.

Thank you for looking here: http://www.safaribears.de/help/regex.html

;-)

- --
regards,
 Jürgen
:eu-flag3: :de-bw:

There are none so blind as those who will not see

Using The Bat! v2.12.03, Opera v7.54.3865 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)

iD8DBQFBMLZ0oXyU9LPZSMERAqBxAJ415Mq/piIQV4ymYqLZJK06oAUbawCgjuiA
YJObCoxxPYa3rtcSq8gvXUY=
=GvtP
-END PGP SIGNATURE-



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


Re: regex/macro help needed

2004-08-28 Thread Andrey Perevodchik
Hello!

JH I have a little problem with a subject-modifier macro and need some help.
JH Thank you for looking here: http://www.safaribears.de/help/regex.html

Maybe escape dash as well?...

-- 
Andrey



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


RE:regex/macro help needed

2004-08-28 Thread Jurgen Haug
Hello Andrey,

Saturday, August 28, 2004, 7:26:43 PM, you wrote:


 Hello!

JH I have a little problem with a subject-modifier macro and need some help.
JH Thank you for looking here: http://www.safaribears.de/help/regex.html

 Maybe escape dash as well?...

I tried that too (and colon) and it didn't help...

-- 
Best regards,
 Jürgen
:eu-flag3: :de-bw:

She was only a telegrapher's daughter, but she did-it-ah-did-it!

Using The Bat! v2.12.03, Opera v7.54.3865 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'

pgpySmY0Eux0b.pgp
Description: PGP signature

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

Re: regex/macro help needed

2004-08-28 Thread Robin Anson
On Sun 29 August 2004, 2:44:26 +1000, Jurgen Haug wrote:
 I have a little problem with a subject-modifier macro and need some help.
 
 Thank you for looking here: http://www.safaribears.de/help/regex.html

As I understand it, you are trying to take a subject like
:-* Re: something
and extract
something

If that is correct, the problem with the regex is not with what you have
added, it is that it starts with \A:?. This matches the first colon,
then the :-\* re that you have added doesn't match what is left. You
could add -\* re instead, or take out the :? at the beginning of your
regex line.

-- 
Robin

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







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


Macro Help needed

2004-08-11 Thread Jurgen Haug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hallo Fledermäuse,

I have this template for replies:


***
QINCLUDE=Greeting

CURSOR
***

the  QuickTemplate  is  the  complicated  stuff about greeting several people by
name, where Roelof was helping me out so nicely.

Now  the  question is, how can I change that template above, to only use the QT,
if there are several people addressed? And another QT if not?

- --
regards,
 Jürgen
:eu-flag3: :de-bw:

Never trust a man who can count to 1023 on his fingers

Using The Bat! v2.12.03, Opera v7.54.3865 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)

iD4DBQFBGj1xoXyU9LPZSMERAqa8AJdsLiAQy4fe0P/CydjbLjCMxFPjAJ0b8cQz
3kpMkVPo0nQ90PcGjJkxIw==
=d0uC
-END PGP SIGNATURE-



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


Re: Macro Help needed

2004-08-11 Thread Roelof Otten
Hallo Jurgen,

On Wed, 11 Aug 2004 17:38:25 +0200GMT (11-8-2004, 17:38 +0200, where I
live), you wrote:

JH Now  the  question is, how can I change that template above, to only use the QT,
JH if there are several people addressed? And another QT if not?

Test whether there are multiple occurrences of the @ character, can be
done with a simple regexp and an if macro.

%SetPattRegexp=(.*?)(@.*@)(.*)%RegExpBlindMatch=%To%-
%If:'%SubPatt=1'='':'%QInclude(QT for single to)':'%QInclude(QT for multiple 
to)'%-

Insert the names for the appropriate QT's.

-- 
Groetjes, Roelof

The Bat! 2.13 Lucky Beta/4
Windows XP 5.1 Build 2600 Service Pack 1
1 pop3 account, server on LAN

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Re: Macro Help needed - addressing recipient according to gender set in AB

2004-07-24 Thread Roelof Otten
Hallo Jurgen,

On Fri, 23 Jul 2004 21:37:39 +0200GMT (23-7-2004, 21:37 +0200, where I
live), you wrote:

JH if  you ever make it to Stuttgart, let me know in advance, so that I can get all
JH the beers cold IOU

That's 630 km from here, been awhile that I've been so far from home

-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Re: Alternative display of recipient in to header (was: Re: Macro Help needed - addressing recipient according to gender set in AB)

2004-07-23 Thread Christopher Brown
Hi Roelof,

 Just insert the macro as it is here, with all
 spaces and on as many lines as this example. It
 should work though I didn't test it.

I'm having a bit of trouble with the macro you offered. 

I get this exactly in the To: field:

_ _:__ 

And curiously, the Address book Handle, which I use in the greeting, becomes an 
underscore as well:

Hi __,

Here is the template in its entirety:

%ACCOUNT=ASU%-
%If:$%ABToEmail$=$$:$$:$%-
%To=%-
%To='%-
%If:_%ABToPrefix___:_%ABToPrefix _:__%-
%If:_%ABToFirstName%ABToFirstName _:__%-
%If:_%ABToMiddleName___:_%ABToMiddleName _:__%-
%If:_%ABToLastName___:_%ABToLastName_:__%-
%If:_%ABToSuffix___:_ %ABToSuffix_:__%-
 %ABToEmail'$%-

Hi %ABToHandle=%ToFName,

%Cursor

-- 
 %FromFName %FromLName, Ph.D.
 %ORGANISATION
 mailto:%FromAddr

-- 
Chris
Using The Bat! v2.12.00 on Windows 2000 5.0 Build  2195
Service Pack 4

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


Re: Alternative display of recipient in to header (was: Re: Macro Help needed - addressing recipient according to gender set in AB)

2004-07-23 Thread Roelof Otten
Hallo Christopher,

On Fri, 23 Jul 2004 10:21:20 -0700GMT (23-7-2004, 19:21 +0200, where I
live), you wrote:

 This is what went wrong:

CB This works perfectly. And I really appreciate you taking the
CB time to explain what was wrong.

That's just because next time I'll expect you to do the bug fixing
yourself. ;-)

-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Re: Macro Help needed - addressing recipient according to gender set in AB

2004-07-23 Thread Roelof Otten
Hallo Jurgen,

On Fri, 23 Jul 2004 17:35:45 +0200GMT (23-7-2004, 17:35 +0200, where I
live), you wrote:

JH thanks for the info - it works  on it's own, but ...

Of course, after all I tested it. g,dr

JH smartpants  me  wanted to try to adjust a neat macro I found in the library, and
JH as  usual,  I  can't  get it to work. Without TBUDL I wouldn't use TB, because I
JH couldn't use it the way, it's supposed to!

Next time add something like
http://www.silverstones.com/thebat/Library.html#greet+all+recipients
to your message, so your recipient doesn't have to guess what you
picked.

JH What's wrong here?   I changed the last section.

And with pasting in your message you inserted some spaces, I've been
searching quite a bit before I realized where the additional spaces
came from. I couldn't find them in your greeting line.

JH   %REM=
JH %REM=

See what I mean?

JH %_GAR_To=%_GAR_To%-Guten %IF:%TIME10:Morgen:Tag%-
JH %IF:%ABTOGENDER=2:Frau :Herr%-

The real problem was that you forgot that an if-statement has to have
quote marks around the parameters, it should read like:
%if:parameter=value:then:else
Because you're using if-statements inside a rather complex macro, I
prefer to use separators that don't occur in the rest of the macro
that simplifies life, so I changed the above in:
%_GAR_To=%_GAR_To%-Guten %IF:$%TIME$$10$:$Morgen $:$Tag $%-
%IF:$%ABTOGENDER$=$2$:$Frau $:$Herr $%-

That resulted in this QT:

%REM=
   Include lasttnames of all recipients in greeting up to the maximum
   number specified in %_GAR_Max.

   Uses The Bat! v2 syntax.

   Written by Robin Anson 19 Oct 2003
   Updated 28 May 2004
   Modified a tiny bit by Roelof Otten on request of Jurgen Haug 23 July 2004
%-
%-
%REM=
   %_GAR_Max stores the maximum number of names you want in the greeting
   line. Set this to suit your needs.
   %_GAR_Default stores a default greeting to use when the message has
   more than %_GAR_Max recipients. Set this to suit your needs.
   %_GAR_No is the number of names in the greeting.
   %_GAR_Text stores the original list of recipients.
   %_GAR_Temp stores the list of recipients yet to be processed.
   %_GAR_To stores the greeting.
%-
%-
%REM=
   Adjust the %_GAR_Max and %GAR_Default values in the next lines to suit
   your needs 
%-
%_GAR_Max=4%-
%_GAR_Default=Everyone,%-
%-
%-%If:~%To~=~~::~%-
%If:#%_GAR_No#=##%-
:#%-
%_GAR_No=0%-
%_GAR_Text=%ToList%-
%_GAR_Temp=%_GAR_Text,%-
%_GAR_To=%-
%QInclude(Greet_All_Recipients)#%-
:#%-
%IfN:~~%_GAR_No~~=~~%_GAR_Max~~%-
:~~%-
%_GAR_No=%Calculate(%_GAR_No+1)%-
%If:'%setpattregexp=@%regexpmatch=%_GAR_Temp'''%-
:'%setpattregexp=(?i)^((?:.*?)@(?:.*?))(?:,|;)\s*(.*)?%-
%regexpblindmatch=%_GAR_Temp%-
%To=%To=+%subpatt=1+%-
%_GAR_Temp=+%Subpatt=2+%-
%_GAR_To=%_GAR_To%-Guten %IF:$%TIME$$10$:$Morgen $:$Tag $%-
%IF:$%ABTOGENDER$=$2$:$Frau $:$Herr $%-
%Capital(%ABToHandle=^%ABToLName=+%ToLName+^), %-
%QInclude(Greet_All_Recipients)'%-
:'%_GAR_To'~~
:~~%GAR_Default~~%-
%To=%To=%_GAR_Text%-
#~


In my test message this resulted in:

Guten Tag Herr Otten, Guten Tag Frau Kobes, Guten Tag Frau Otten,


I don't know whether that is what you intended, but I guess I'll hear
that from you.


-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Re: Alternative display of recipient in to header (was: Re: Macro Help needed - addressing recipient according to gender set in AB)

2004-07-23 Thread Roelof Otten
Hallo Roelof,

On Fri, 23 Jul 2004 19:14:02 +0200GMT (23-7-2004, 19:14 +0200, where I
live), you wrote:

RO As I said, this will only work for messages with one recipient, but
RO since it deletes the old to-header that means that your template
RO refuses to accept multiple recipients in your to-header (except when
RO the first recipient isn't in your AB), so multiple recipients should
RO be included in either the cc- or bcc-fields.

Of course you could adapt Robin Anson's QT as published at:
http://www.silverstones.com/thebat/Library.html#greet+all+recipients
somewhat, so it handles all recipients for you.

-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Macro Help needed - addressing recipient according to gender set in AB

2004-07-22 Thread Jurgen Haug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hallo Fledermäuse,

I  was looking on the Macro lib and coudn't find any way, but I think I once saw
someone talking about it.
How can I set the greeting according to the gender set in the address book?

Like

if gender = male then say Herr  otherwise say Frau  ...

- --
regards,
 Jürgen
:eu-flag3: :de-bw:

Never hit a man with glasses. Use your fist!

Using The Bat! v2.12.00, Opera v7.53.3850 on Win.XP.5.1.2600.SP1

* PGP key available on request: send mail with subject 'PGP key request'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)

iD8DBQFA/+mcoXyU9LPZSMERAuM5AJ9OOMGrq0rCjooZ7pvaB1v3sENvsACgkXL0
O+6/3nvnOgkgFIS03LDN+PQ=
=dbIv
-END PGP SIGNATURE-



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


Re: Macro Help needed - addressing recipient according to gender set in AB

2004-07-22 Thread Roelof Otten
Hallo Jurgen,

On Thu, 22 Jul 2004 18:21:48 +0200GMT (22-7-2004, 18:21 +0200, where I
live), you wrote:

JH I  was looking on the Macro lib and coudn't find any way, but I think I once saw
JH someone talking about it.
JH How can I set the greeting according to the gender set in the address book?

Use the %ABToGender macro

JH if gender = male then say Herr  otherwise say Frau  ...

Yikes, you're forgetting that Gender has three options: unknown, male
and female. So you'd need to check for male and then for female. Would
be something like:
%If:%ABToGender=1:Herr :%-
%If:'%ABToGender'='2':'Frau ':''%-

The values for Gender are:
0=unknown
1=Male
2=Female

-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Re[2]: Macro Help needed - addressing recipient according to gender set in AB

2004-07-22 Thread Christopher Brown
Hi Roelof,

 The values for Gender are: 0=unknown 1=Male
 2=Female

This reminded me of something I have noticed but never addressed. I have the names in 
my address book displayed with last name first, so I can easily sort them. But if I 
start a new message to someone, TB uses this format (the Display Name I assume) in 
the To: field. How can I set up my  template so that a normally formed name is 
displayed? 

I would also like the To: field to include the name prefix and suffix, if present. Is 
this possible? 

-- 
Chris
Using The Bat! v2.12.00 on Windows 2000 5.0 Build  2195
Service Pack 4

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


Alternative display of recipient in to header (was: Re: Macro Help needed - addressing recipient according to gender set in AB)

2004-07-22 Thread Roelof Otten
Hallo Christopher,

On Thu, 22 Jul 2004 10:45:18 -0700GMT (22-7-2004, 19:45 +0200, where I
live), you wrote:

CB This reminded me of something I have noticed but never addressed.
CB I have the names in my address book displayed with last name
CB first, so I can easily sort them. But if I start a new message to
CB someone, TB uses this format (the Display Name I assume) in the
CB To: field. How can I set up my template so that a normally formed
CB name is displayed?

That's easy, that'll be something like this:

%To=%To='%ABToPrefix %ABToFirstName %ABToMiddleName %ABToLastName %ABToSuffix 
%ABToEmail'%-

Note that it's best to have this on one line. You mentioned prefix
and suffix, I also included the middle name, just to make it complete.
You'll have to realize that when you mail somebody without prefix,
middle name and suffix the macto above will put some extra spaces in
the to header, it would look like:
 John  Doe  [EMAIL PROTECTED]
Besides, when the recipient is not present in the AB, you'll get an
invalid to address, would be:
 
That can be taken care of, but you'll get a somewhat more complicated
macro:

%If:$%ABToEmail$=$$:$$:$%-
%To=%-
%To='%-
%If:_%ABToPrefix___:_%ABToPrefix _:__%-
%If:_%ABToFirstName%ABToFirstName _:__%-
%If:_%ABToMiddleName___:_%ABToMiddleName _:__%-
%If:_%ABToLastName___:_%ABToLastName_:__%-
%If:_%ABToSuffix___:_ %ABToSuffix_:__%-
 %ABToEmail'$%-

This tests whether there's an address for the recipient in your AB and
then it starts filling in the fields. Note that this macro presumes
that you'll have a last name in your AB, otherwise you'll have a space
too many between the quote marks of your address. I've included the
quote marks in case the name contains forbidden characters like dots.

Just insert the macro as it is here, with all spaces and on as many
lines as this example. It should work though I didn't test it.

-- 
Groetjes, Roelof

Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies 
or rabbits.



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


Macro help needed - Thanks!

2003-09-18 Thread John Phillips

Hi Bat! Fans,

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?

T.I.A.

-- 
John Phillips, Sydney, Australia

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

What garlic is to salad, insanity is to art. 



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, 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