]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_scanners: Set least action if matched
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Dec 2019 10:56:23 +0000 (10:56 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 10 Dec 2019 10:56:23 +0000 (10:56 +0000)
Issue: #3184

lualib/lua_scanners/common.lua

index 80032676bf2991354f81bbd8d674e471833a576e..f286d963aad610804acd5d75814d8899910e9ba4 100644 (file)
@@ -116,7 +116,7 @@ local function yield_result(task, rule, vname, dyn_weight, is_fail)
         lua_util.template(rule.message or 'Rejected', {
           SCANNER = rule.name,
           VIRUS = threat_table,
-        }), rule.name)
+        }), rule.name, nil, nil, 'least')
   end
 end