On Mon 24 May 2004, 4:20:23 +1000, Cyrille wrote: > I am not very keen on manually inserting the country field in the AB > for my 800 contacts. Because this solution is not much better than > analyzing the email address. It is true that in many cases it is > possible to say "country = language" , but Central Europe is not the > Netherlands. In most of the countries there are several official > languages (Hungarians in Slovakia, Germans in Romania, etc.). > > As far as I know, language information does not belong to the Internet > standard of vCards which TB uses for his address book. If there would > be something like that, this would be of course the cleanest solution.
If you want to set a language for existing addressbook entries (as opposed to being able to set a language in a reply to a previously unknown sender), one approach would be to use the addressbook memo field For recipients that don't use your standard language, you could include a line in the memo field that looks like "language: FR" and include in your message template a macro that searches for such an entry in this field. I currently do this for setting read and delivery receipt requests, and for selecting which signatures to use for particular recipients. If you create the following QT, it will look for "language: XX" on a line by itself in the memo field of the first recipient of the message, and set the language of the message accordingly. Other information in the memo field (on other lines) will not affect the language setting. Then include %Qinclude(SetLang) in your message templates. ------ [SetLang QT] ------ %REM=^%- Set language based on recipient's addressbook memo entry containing a line starting "Language:" followed by the language code ^%- %- %_SetLang='%SetPattRegExp="(?im)^Language:\s*([a-z]{2})\s*$"%RegExpMatch=%ABToMemo'%- %If:"%_SetLang"<>"":%Language=%_SetLang:%- ---- [End SetLang QT] ---- -- Robin Anson Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1 ________________________________________________ Current version is 2.10.03 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html