]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Rbl: Adjust whitelisting one more time
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Apr 2020 19:28:59 +0000 (20:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 Apr 2020 19:28:59 +0000 (20:28 +0100)
src/plugins/lua/rbl.lua

index d82a89948d79df1b8981558575a83607949ebb99..430afaf340ceefeffd86eb4794375a295e2635df 100644 (file)
@@ -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