diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-25 13:15:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-25 13:15:12 +0100 |
commit | 5ccf9bc7fb353c2bf20f7eb44feb283d4720bbdd (patch) | |
tree | 78d530ea7d2d096b9ba8b8d0f4585f05dc42ecc6 /src | |
parent | 926db781dc9931d1186727145e65ba5189003c87 (diff) | |
download | rspamd-5ccf9bc7fb353c2bf20f7eb44feb283d4720bbdd.tar.gz rspamd-5ccf9bc7fb353c2bf20f7eb44feb283d4720bbdd.zip |
[Fix] GPT: Fix bug in condition check
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/gpt.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/gpt.lua b/src/plugins/lua/gpt.lua index 61217cbf8..823dbd045 100644 --- a/src/plugins/lua/gpt.lua +++ b/src/plugins/lua/gpt.lua @@ -94,11 +94,11 @@ local function default_condition(task) local action = result.action if action == 'reject' and result.npositive > 1 then - return true, 'already decided as spam' + return false, 'already decided as spam' end if action == 'no action' and score < 0 then - return true, 'negative score, already decided as ham' + return false, 'negative score, already decided as ham' end end -- We also exclude some symbols |