Hello all,

Krister Ekstrom in <mid:<[EMAIL PROTECTED]> gave me
the idea of setting the language automatically in replies based on the
language of the original message.

This method is only valid if your are using POPFile for spam
detection, like I am.

Because I mainly correspond in English and Spanish, I have changed my
POPFile from two buckets, 'spam' and 'real', to three: 'eng', 'esp'
and 'spam'. I have reset statistics, re-trained it with some 400
existing messages and, for the moment, it is running at 100% accuracy.
Obviously, I have POPFile set to include the X-Text-Classification:
header in classified messages.

In TB I have created the following QT:

,----- [ SLANG ]
| %IF:"%SETPATTREGEXP='(?im-s)^(X-Text-Classification)\:\s*(.*)$'%-
| %REGEXPBLINDMATCH='%HEADERS'%-
| %SUBPATT='2'"="eng":"%LANGUAGE='BR'":"%LANGUAGE='SP'"
`-----

And in all my reply templates I have included it right after %Cursor:

,----- [  ]
| %Cursor%QINCLUDE="SLANG"%-
`-----

And it works!!!  Now I can forget about having to change the language
manually :-)))

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.62i


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

Reply via email to