aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-23 12:32:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-23 12:32:32 +0100
commit2913aa51d1c70e115319f3b6316f76a7d1318abf (patch)
tree1727cbc5f5b70672001d3f712a0c97dffcbff9d4 /src
parent6250166809e56322101b8ef1177a4ac6f55acd9c (diff)
downloadrspamd-2913aa51d1c70e115319f3b6316f76a7d1318abf.tar.gz
rspamd-2913aa51d1c70e115319f3b6316f76a7d1318abf.zip
[Minor] Fix misprint in reputation module
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/reputation.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index f64fd6c6c..47507fe3c 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -59,7 +59,7 @@ local function add_symbol_score(task, rule, mult, params)
if not params then params = {tostring(mult)};
end
- if rule.cfg.split_symbols then
+ if rule.config.split_symbols then
if mult >= 0 then
task:insert_result(rule.symbol .. '_SPAM', mult, params)
else
@@ -182,7 +182,7 @@ local function dkim_reputation_postfilter(task, rule)
local accept_adjustment = task:get_mempool():get_variable("dkim_reputation_accept")
if sym_accepted and accept_adjustment then
- local final_adjustment = rule.cfg.max_accept_adjustment *
+ local final_adjustment = rule.config.max_accept_adjustment *
rspamd_util.tanh(tonumber(accept_adjustment))
task:adjust_result('R_DKIM_ALLOW', sym_accepted.score * final_adjustment)
end
@@ -191,7 +191,7 @@ local function dkim_reputation_postfilter(task, rule)
local reject_adjustment = task:get_mempool():get_variable("dkim_reputation_reject")
if sym_rejected and reject_adjustment then
- local final_adjustment = rule.cfg.max_reject_adjustment *
+ local final_adjustment = rule.config.max_reject_adjustment *
rspamd_util.tanh(tonumber(reject_adjustment))
task:adjust_result('R_DKIM_REJECT', sym_rejected.score * final_adjustment)
end