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


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