TheBat! — a very powerful email client. The program allows you to automate the execution of many routine operations (write greetings, delete a signature when responding, etc.). However, the two most significant advantages that distinguish it from a huge mass of similar developments are the presence of templates and a powerful macro language.
As in the case of Word, users use only 5% of The Bat's capabilities in their work! The consequence of this is the presence of template phrases in the letters "Hello, Dmitry,"you wrote:». In my opinion, this is not very nice in relation to the addressee — it is clearly given to know that it is too lazy to spend time typing a phrase. But there is a way out, you can use templates in such a way that the addressee will never guess about it.
First of all, we will need to install the NameRus plug-in and change the template by adding a new macro. The plugin «translates» Common names in the former USSR from Latin to Cyrillic. Thus, «Sergey» will turn into «Sergey».
Since you can receive letters not only in Russian, but also, for example, in English, it would be nice for the program to determine the language of the letter itself and, depending on this, already use a Russian-language or English-language template (i.e., depending on the language of the letter, the bourgeois "Hello" or our «Hello »). Three years ago, a solution to this problem was proposed by the user Homeric in the TheBat! discussion sheet:
I determine by the presence of four or more 8-bit characters in a letter, regardless of the encoding of the letter. There is no point in checking one eight-bit character, since there is such a thing in the French text.
For letters in English, I also disable initials in the quote — in the West, it is not customary to put initials in quotes and Western mailers do not support them.
Template:
%SINGLERE%IF:»%REGEXPTEXT='([xc0-xff]{4})'»& gt;<«»:» Hello %TOFNAME,
%ODATE in %OTIME You wrote:»:»%QUOTESTYLE=»»None»»Hello %TOFNAME,
%ODATEEN at %OTIMELONGEN you wrote:»
%QUOTES
%CURSOR
—
%FROMFNAME
%IF:»%REGEXPTEXT='([xc0-xff]{4})'»><«»:»%COOKIE=»»D:MAILtemplateCookies-ru.
txt»»»:»%COOKIE=»»D:MAILtemplateCookies-en.txt»»»
Here is an elegant solution worth taking note of to support staff ;)