New Articles
Windows 11 users have discovered a funny bug that benefits older computers....
It's easy to turn off the transmission — we tell you how to do it....
Such photos have been taken by models and social media users for a long time,...
A famous musician? A schoolteacher? Mom? Tell us about the people you looked up...
Thanks to the instructions of Artyom Kozoriz, you can cope no worse than a...
5 interesting exercises that will help you develop flexibility....
From "Starship Troopers" and "The Matrix" to...
The return of Garfield and Mufasa, the new Transformers and the Lord of the...
About Everything Wiki » Work and Study » We use templates in TheBat! wisely

We use templates in TheBat! wisely

03 May 2023, 05:17, parser
0 comments    2 Show

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 ;)

Read also:
03 May 2023, 19:32    0    0
Sunglasses are a very difficult accessory. How long do you have to stand in front of a turntable,...
Comments
reload, if the code cannot be seen