]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix spamtrap score 3231/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 23 Jan 2020 06:39:47 +0000 (09:39 +0300)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2020 06:39:47 +0000 (09:39 +0300)
Issue #3162

src/plugins/lua/spamtrap.lua

index ab39b42e6a6111a8b9fefc4218e04c1bd76c3181..4b03b1739676f5713279008b7edb840cefefbdad 100644 (file)
@@ -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)