From: Vsevolod Stakhov Date: Thu, 25 Jul 2024 12:15:12 +0000 (+0100) Subject: [Fix] GPT: Fix bug in condition check X-Git-Tag: 3.10.0~68^2^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ccf9bc7fb353c2bf20f7eb44feb283d4720bbdd;p=thirdparty%2Frspamd.git [Fix] GPT: Fix bug in condition check --- diff --git a/src/plugins/lua/gpt.lua b/src/plugins/lua/gpt.lua index 61217cbf8f..823dbd0452 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