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

