aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-23 08:25:11 +0000
committerGitHub <noreply@github.com>2020-01-23 08:25:11 +0000
commit34f92cf9c11c31e0b6bdd662e4f2251a4f6e1876 (patch)
tree73402ccf1f8a3a5ab3902f015ee5283ff8a808cb
parentb54a829032d8685e19e8bc70e0110c459d330b90 (diff)
parent58abb22ee2c8e6ce8bd571ecfa8c119e29e9b736 (diff)
downloadrspamd-34f92cf9c11c31e0b6bdd662e4f2251a4f6e1876.tar.gz
rspamd-34f92cf9c11c31e0b6bdd662e4f2251a4f6e1876.zip
Merge pull request #3231 from moisseev/patch-1
[Minor] Fix spamtrap score
-rw-r--r--src/plugins/lua/spamtrap.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/lua/spamtrap.lua b/src/plugins/lua/spamtrap.lua
index ab39b42e6..4b03b1739 100644
--- a/src/plugins/lua/spamtrap.lua
+++ b/src/plugins/lua/spamtrap.lua
@@ -58,9 +58,7 @@ local function spamtrap_cb(task)
if settings['learn_spam'] then
task:set_flag("learn_spam")
end
- task:insert_result(settings['symbol'],
- settings['score'],
- rcpt)
+ task:insert_result(settings['symbol'], 1, rcpt)
if settings['action'] then
rspamd_logger.infox(task, 'spamtrap found: <%s>', rcpt)