Hello Cyrille,

> Is this possible? If yes, how?
> 
> Important: I don't want different folders for different languages. My
> folders are organized by topic.
> 
> Does somebody out there has some other hints what could be helpful in
> dealing with mail in multiple languages?

It is possible to a certain extent. Although I basically just deal with
two languages, English and Spanish, I'll give some ideas of things I've
done in the past or do now.

To start with, I would suggest that you create a QT (Quick Template) for
each language and name them accordingly: ENG, ESP, GER, etc., in which
you define the language, character set, perhaps signature and even
account or from address if you wanted to use different accounts or from
addresses for different languages. These QTs can then be used manually
or 'automatically' from other QTs or templates.

Let's talk first about NEW messages.

Whether you use AB, folder or account templates, when you start a new
message you can then type (anywhere in the body) the name of the
adequate QT and hit <Ctrl+Space> to 'execute' it. After that, the proper
language, etc. will be set.

In order to not forget to use the appropriate QT you can include a list
of the language QTs in your "New message template" like if they were a
menu to choose from, something like this:

ENG
ESP
GER

This way, all you have to do is place the cursor at the end of the name
of one of them and hit <Ctrl+Space>

If you know that you always write in the same language to the same
people, you can automate this even more if you use AB (Address Book) or
Group templates by doing a %QUINCLUDE="LAN", where LAN is the name of
the appropriate QT. If you can write to some people in more than one
language (i.e. because you CC someone else), what you can include is a
'menu' of language QTs and you can decide manually each time you write
to that person.

What about replies and forwards? Obviously enough you have the same
options as described above. But I will point you to another one a bit
more automatic that I use to reply in the same language of the message I
am replying to.

The question is how can TB know what language is the original message
in. I my case I "get help" from POPFile. Instead of configuring POPFile
to just classify "spam" and "no-spam" I have trained it to recognise
different languages and so, the messages are classified either as SPAM,
or ENG or ESP. I have POPFile configured to include an
X-Text-Classification: XXX, where, in my case, it can be either SPAM,
ENG or ESP.

Then, in my reply templates I include this line:

%Cursor%QINCLUDE="SLANG"%-

Obviously enough, SLANG is the name of the QT where I detect the
language of the message I am replying to and set my reply accordingly.
This is my:

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

In my case I am just choosing between two languages. So, if original
message is not in English, it must be in Spanish. In your case you would
have your SLANG QT a bit more complex.

I hope I have been of some help and given you some ideas.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v2.10.03




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

Reply via email to