On Mon 7 June 2004, 8:05:59 +1000, Cyrille wrote:
> (2)
> ---- [ 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 SetLanguage QT ]
> 
> My changes are at the end of line 10 and at the very end of the QT.

What you have done at the end of line 10 is correct. It actually appears
to be line 11 if you count the blank line at the beginning.

If the first line is in you QT (the one _before_ %REM=^%-) this should
also have %-.

If the last two blank lines are in your QT, they should also have %-.

However all three of those blank lines could safely be omitted since they
do nothing.

-- 
Robin Anson
Using The Bat! v2.11.02 on Windows XP 5.1 Build 2600 Service Pack 1






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

Reply via email to