Hello Robin and Roelof,

The problem seems to be solved.
Tuesday, June 8, 2004, 12:20:51 AM, you wrote:

RA> I agree with Roelof's suggestions:
RA>    * put "" before the %- in each of the %If statements in the
RA>      master_new_message QT

This works the line which disappeard is back again now.

RA>    * include %- at the end of the final %If statement in the
RA>      master_new_message QT

This part does not seem to have an influence on the output.

RA> And if you omit the %- after
RA>    %If:"%_SetLang"="PL":"%QInclude(new_PL)":
RA> you will find you have one extra blank line in your Polish messages.

With or without %- same result. The Polish messages behave like all
the others...

RA> TB! will continue to look for what to do if the condition is false. I
RA> don't know enough about how the %If macro handles improperly constructed
RA> statements to work out how it interprets the set of statements you have,
RA> but I'm sure it causes problems!

What does this mean for the SetLanguage QT? As far as I see there is
also an empty <action if false> statement in the %If macros. Or is
there something I misinterpret?
After your (Robin's and Roelof's) debugging it looks like this now:

--------- [ SetLANGUAGE QT ] ---------
%REM=^%-

Set language based on recipient's addressbook memo entry containing a
line starting "Language:" followed by the language code

If this doesn't exist, use the TLD in the recipient's address

^%-
%-
%_SetLang='%SetPattRegExp="(?im)^Language:\s*([a-z]{2})$"%RegExpMatch=%ABToMemo'%-
%If:#%_SetLang#<>##:##:#%-
%-
%Rem="No language entry in the addressbook"%-
%-
%_SLDomain='%SetPattRegExp="\.([^\.]*?)$"%RegExpMatch("%ToAddr")%-'
%_SetLang="AM"%-
%-
%If:'%_SLDomain'='fr':'%_SetLang="FR"'%-
%If:'%_SLDomain'='de':'%_SetLang="DE"'%-
%If:'%_SLDomain'='sk':'%_SetLang="SK"'%-
%If:'%_SLDomain'='cz':'%_SetLang="SK"'%-
%If:'%_SLDomain'='ru':'%_SetLang="RU"'%-
%If:'%_SLDomain'='hu':'%_SetLang="HU"'%-
%If:'%_SLDomain'='pl':'%_SetLang="PL"'#%-
--------- [end of SetLANGUAGE QT ] ---------

Where is the <action if false> statement?

--
Best regards,
Cyrille
mailto:[EMAIL PROTECTED]


[ TB! 2.10.01, Windows ME 4.90 Build 3000, Pentium 233Mhz with 95MB ]



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

Reply via email to