]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix known senders to work with empty mime recipients
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 26 Jul 2024 17:04:27 +0000 (18:04 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 10 Aug 2024 09:35:10 +0000 (10:35 +0100)
Issue: #5070

src/plugins/lua/known_senders.lua

index 6d57acea36797cf4991cf0d5d89dd68e2c69ca1b..5cb2ddcf5988a25aa33f6f9cd06ba324e2cc4b08 100644 (file)
@@ -18,6 +18,7 @@ limitations under the License.
 
 local rspamd_logger = require "rspamd_logger"
 local N = 'known_senders'
+local E = {}
 local lua_util = require "lua_util"
 local lua_redis = require "lua_redis"
 local lua_maps = require "lua_maps"
@@ -258,7 +259,7 @@ local function verify_local_replies_set(task)
     return nil
   end
 
-  local replies_recipients = task:get_recipients('mime')
+  local replies_recipients = task:get_recipients('mime') or E
 
   local replies_sender_string = lua_util.maybe_obfuscate_string(tostring(replies_sender), settings,
       settings.sender_prefix)