]> source.dussan.org Git - rspamd.git/commitdiff
[Rework] Neural: Skip composite symbols
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Oct 2020 11:18:36 +0000 (12:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Oct 2020 11:18:36 +0000 (12:18 +0100)
src/lua/lua_config.c
src/plugins/lua/neural.lua

index 06a2f57b6db04449fda0f663707742e086132d3c..38c15bbe1f4a6c26a0d413241f0d911e74e7b518 100644 (file)
@@ -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
index 124877927fae34476a7e75e31f6de61a6a52373f..05244e9c677231c963d6efc300dd0ac74f875a37 100644 (file)
@@ -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