From: Vsevolod Stakhov Date: Tue, 4 May 2021 11:17:24 +0000 (+0100) Subject: [Minor] Neural: Do not filter static profiles X-Git-Tag: 3.0~440 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06f9ed1d12b9096f722ab5ea387cd805e4b17290;p=thirdparty%2Frspamd.git [Minor] Neural: Do not filter static profiles --- diff --git a/lualib/plugins/neural.lua b/lualib/plugins/neural.lua index 5571335913..64d21ce373 100644 --- a/lualib/plugins/neural.lua +++ b/lualib/plugins/neural.lua @@ -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)