aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2020-01-23 09:39:47 +0300
committerGitHub <noreply@github.com>2020-01-23 09:39:47 +0300
commit58abb22ee2c8e6ce8bd571ecfa8c119e29e9b736 (patch)
tree73402ccf1f8a3a5ab3902f015ee5283ff8a808cb /src
parentb54a829032d8685e19e8bc70e0110c459d330b90 (diff)
downloadrspamd-58abb22ee2c8e6ce8bd571ecfa8c119e29e9b736.tar.gz
rspamd-58abb22ee2c8e6ce8bd571ecfa8c119e29e9b736.zip
[Minor] Fix spamtrap score
Issue #3162
Diffstat (limited to 'src')
-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)