commit d43846d: [Minor] Rbl: Adjust whitelisting one more time

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Apr 20 19:35:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-04-20 20:28:59 +0100
URL: https://github.com/rspamd/rspamd/commit/d43846dfcb21b6b1254cc0c0f9495d4441ccffb3 (HEAD -> master)

[Minor] Rbl: Adjust whitelisting one more time

---
 src/plugins/lua/rbl.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index d82a89948..430afaf34 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -307,8 +307,9 @@ local function gen_rbl_callback(rule)
             'whitelisted request to %s by %s (%s) rbl rule (%s checked type, %s whitelist type)',
             req_str, wl.type, wl.symbol, what, wl.type)
         if wl.type == what then
-          -- Add symbol option (0.0 / 0.0 is used to denounce NAN that prevents score modification)
-          task:adjust_result(wl.symbol, 0.0 / 0.0, rule.symbol)
+          -- This was decided to be a bad idea as in case of whitelisting a request to blacklist
+          -- is not even sent
+          --task:adjust_result(wl.symbol, 0.0 / 0.0, rule.symbol)
 
           return true
         end


More information about the Commits mailing list