Re: One Email Address, Multiple Names
On Tue 6-Jul-04 11:23am -0400, Roelof Otten wrote: Hallo Bill, On Mon, 5 Jul 2004 22:06:32 -0500GMT (6-7-2004, 5:06 +0200, where I live), you wrote: BM In my family address book, I have multiple entries for the with the BM same email address. For the reasons you explained that's a bad habit. ;-) TB picks the first AB entry with the correct address. BM Name Handle Address BM -- --- BM Dad dd[EMAIL PROTECTED] BM Mom mm[EMAIL PROTECTED] BM Mom Dad md[EMAIL PROTECTED] BM My templates use address book macros and pick up the same name no BM matter whether I enter dd, mm or md. How do I get around this? Just use the Mom Dad address and create two quick templates, call this one 'dd': Thanks for your suggestion, but I'm looking for something more general - my macro uses other info form the address book such as data of birth for some date arithmetic I do. I've got a solution that's almost complete. It requires that I change my address book so each entry has a unique address such as, following my example: Name Handle Address -- --- Dad dd[EMAIL PROTECTED] Mom mm[EMAIL PROTECTED] Mom Dad md[EMAIL PROTECTED] I'll post my solution when I complete it - I've become a bit rusty on my regex stuff. -- Best regards, Bill Current version is 2.11.02 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: One Email Address, Multiple Names
On Mon 5-Jul-04 10:06pm -0400, Bill McCarthy wrote: In my family address book, I have multiple entries for the with the same email address. For example: Name Handle Address -- --- Dad dd[EMAIL PROTECTED] Mom mm[EMAIL PROTECTED] Mom Dad md[EMAIL PROTECTED] My templates use address book macros and pick up the same name no matter whether I enter dd, mm or md. How do I get around this? Here's my new message macro: - %_Addr=%ABToFirstName %ABToEmail%- %To=%To=%_Addr%- %From=%ABFromFirstName %ABFromEmail%- Dear %ABToFirstName, %Cursor %QInclude=FamSig%- - Solved! Eliminate the duplicate email addresses by appending #1, #2, etc. to the addresses of entries with duplicate addresses. Now there are no duplicates to confuse TB!. I wasn't able to clear these tags in the template without causing address book macros from picking up the wrong information. I got around this by inserting the name of the QT that makes the change. First, in a new line before %Cursor (see above) add: %IF:%SETPATTREGEXP='#'%REGEXPMATCH='%To'=#%- :Hit_Ctrl_Space:%- Now create a QT called, of course Hit_Ctrl_Space.qt. Here it is: %SetPattRegExp='(.*?)#'%- %RegExpBlindMatch(%To)%- %To=%To=%Subpatt(1)%- This approach fails if the To field has any address following a '#' address. Modifying the QT so it wipes out #\d+ and calling itself when there are any '#' remaining should solve this - maybe this weekend? -- Best regards, Bill Current version is 2.11.02 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: One Email Address, Multiple Names
Hallo Bill, On Mon, 5 Jul 2004 22:06:32 -0500GMT (6-7-2004, 5:06 +0200, where I live), you wrote: BM In my family address book, I have multiple entries for the with the BM same email address. For the reasons you explained that's a bad habit. ;-) TB picks the first AB entry with the correct address. BM Name Handle Address BM -- --- BM Dad dd[EMAIL PROTECTED] BM Mom mm[EMAIL PROTECTED] BM Mom Dad md[EMAIL PROTECTED] BM My templates use address book macros and pick up the same name no BM matter whether I enter dd, mm or md. How do I get around this? Just use the Mom Dad address and create two quick templates, call this one 'dd': - %Clear%- %T0=''%To='Dad parental address'%- %From=%ABFromFirstName %ABFromEmail%- Dear Dad, %Cursor %QInclude=FamSig%- - When writing to your dad, type dd followed by Ctrl-space in your message and you're done. I suppose you're able to proceed with the 'mm' QT yourself. ;-) BTW When you write a new message to your dad with this template, you need to enter any address in the To: header since the QT will take care of that. -- Groetjes, Roelof Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies or rabbits. Current version is 2.11.02 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
One Email Address, Multiple Names
Hello TB User Discussion List, In my family address book, I have multiple entries for the with the same email address. For example: Name Handle Address -- --- Dad dd[EMAIL PROTECTED] Mom mm[EMAIL PROTECTED] Mom Dad md[EMAIL PROTECTED] My templates use address book macros and pick up the same name no matter whether I enter dd, mm or md. How do I get around this? Here's my new message macro: - %_Addr=%ABToFirstName %ABToEmail%- %To=%To=%_Addr%- %From=%ABFromFirstName %ABFromEmail%- Dear %ABToFirstName, %Cursor %QInclude=FamSig%- - -- Best regards, Bill Current version is 2.11.02 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html