commit a61871c: [Rework] Neural: Skip composite symbols
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Oct 5 11:21:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-10-05 12:18:36 +0100
URL: https://github.com/rspamd/rspamd/commit/a61871cccb5a86c4e9ad264c045b4403abc2b183 (HEAD -> master)
[Rework] Neural: Skip composite symbols
---
src/lua/lua_config.c | 4 ++++
src/plugins/lua/neural.lua | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 06a2f57b6..38c15bbe1 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 124877927..05244e9c6 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
More information about the Commits
mailing list