В продолжение. При использовании программы sendmail можно из командной строки отправлять письма. И встраивать такие алгоритмы в ИРБИС я считаю нерациональным, поскольку переписывать то, что уже написано - неблагодарный труд. А вот иметь возможность из ИРБИСа запускать внешние программы с формированием строки или блока данных - это приятно. На всякий случай посылаю команды и описание, которые есть в языке cisis и могут помочь:
---------------------------------------------------------------
putenv(expression)
environment variable set
Support: CISIS
Function type: String
Syntax: putenv(<format>)
Definition: Sets an environment variable at the operating system level with its corresponding value.
Notes: The variable is available only within the scope of current process.
Examples:
putenv('TEST=test'),getenv('TEST'),
set CIPAR=somefile
set mx null "pft=putenv('CIPAR=another'),getenv('CIPAR')/"
set
See also: getenv function
--------------------------------------------------------------
getenv(expression)
get environment variable
Support: CISIS
Function type: String
Syntax: getenv(<format>)
Definition: Returns the value of an environment variable.
Notes: If <format> does not generate a valid environment variable name, no value is returned.
Examples:
'Current path: ',getenv('PATH'),
(v1|=|,getenv(v1)/),
-----------------------------------------------------------------
cat(file)
dump file
Support: CISIS
Function type: String
Syntax: cat(<format>)
Definition: Outputs the contents of a file whose name is generated by <format>.
Examples:
mfn,cat('myfile.html'),
cat('current document'/, ,if v10='c' then 'firstdoc.txt' else 'default.doc' fi),
cat(v101),
-------------------------------------------------------------------------
/*string*/
comment
Support: CISIS
Syntax: /* <comment> */
Definition: Encapsulates a comment.
Notes: Comments can span over several lines.
Examples: /* this is a single line comment */,
/* this comment begins here
and ends here */,
if a(v10) /*and p(v20) */ then v20/ fi,
----------------------------------------------------------------------------
system(expression)
system call
Support: CISIS
Function type: String
Syntax: system(<format>)
Definition: Executes the argument produced by <format> as an operating system command.
Notes: <format> must generate a string containing the code to be executed. The possible output from the command is sent directly to the standard output.
Examples: system('dir'),
if p(v2) then system('type ',v2), fi,
---------------------------------------------------------------------------
Сам файл с описанием языка cisis:
[
library.tomsk.ru]