From: Vsevolod Stakhov Date: Mon, 5 Oct 2020 11:18:36 +0000 (+0100) Subject: [Rework] Neural: Skip composite symbols X-Git-Tag: 2.7~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a61871cccb5a86c4e9ad264c045b4403abc2b183;p=thirdparty%2Frspamd.git [Rework] Neural: Skip composite symbols --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 06a2f57b6d..38c15bbe1f 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1921,6 +1921,10 @@ lua_push_symbol_flags (lua_State *L, guint flags, enum lua_push_symbol_flags_opt if (flags & SYMBOL_TYPE_SKIPPED) { LUA_OPTION_PUSH (skip); } + + if (flags & SYMBOL_TYPE_COMPOSITE) { + LUA_OPTION_PUSH (composite); + } } static gint diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 124877927f..05244e9c67 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -1436,7 +1436,7 @@ local function process_rules_settings() if fl then fl = lua_util.list_to_hash(fl) - return not (fl.nostat or fl.idempotent or fl.skip) + return not (fl.nostat or fl.idempotent or fl.skip or fl.composite) end return false