From: Vsevolod Stakhov Date: Fri, 26 Jul 2024 17:04:27 +0000 (+0100) Subject: [Minor] Fix known senders to work with empty mime recipients X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=31ef772fc65155cf483b8cea6125f2e08303963b;p=rspamd.git [Minor] Fix known senders to work with empty mime recipients Issue: #5070 --- diff --git a/src/plugins/lua/known_senders.lua b/src/plugins/lua/known_senders.lua index 6d57acea3..5cb2ddcf5 100644 --- a/src/plugins/lua/known_senders.lua +++ b/src/plugins/lua/known_senders.lua @@ -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)