]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Neural: Do not filter static profiles
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 May 2021 11:17:24 +0000 (12:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 May 2021 11:17:24 +0000 (12:17 +0100)
lualib/plugins/neural.lua

index 5571335913f494c74c4f0164bda72c1db750f7ea..64d21ce37360a63b55dd366faa307bdc65ea574c 100644 (file)
@@ -653,7 +653,11 @@ local function process_rules_settings()
     end
 
     -- Generic stuff
-    selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols))
+    if not profile then
+      -- Do filtering merely if we are using a dynamic profile
+      selt.symbols = fun.totable(fun.filter(filter_symbols_predicate, selt.symbols))
+    end
+
     table.sort(selt.symbols)
 
     selt.digest = lua_util.table_digest(selt.symbols)