]> source.dussan.org Git - rspamd.git/commit
Rework adding symbols from lua.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Aug 2014 17:14:31 +0000 (18:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 17 Aug 2014 17:14:31 +0000 (18:14 +0100)
commit1f0f66e32c037b922edffd4e8c66ae93cd988691
tree1c577517c34ed03adb1cc28f751ad3546a73302b
parent00de10fa6d82fd3f0c2794aaa60772f785dffc84
Rework adding symbols from lua.

It is now possible to use something like:

rspamd_config.SYMBOL = function(task) ... end

or even

rspamd_config.SYMBOL =  {
     callback = function(task) ... end,
weight = '1.0', --optional
priority = '0', --optional
type = 'callback' --optional
}
src/libserver/symbols_cache.c
src/libserver/symbols_cache.h
src/lua/lua_config.c