diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-26 18:04:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-26 18:08:54 +0100 |
commit | 08aad032fade28a4647d2f63e2f7196d5b402582 (patch) | |
tree | ffcd216e1bafb89d9c9a889e4c29795e1f2b14f3 /src/plugins | |
parent | 5c6146798e73ef38f08fbc1dab7c4dcd452a6cd0 (diff) | |
download | rspamd-08aad032fade28a4647d2f63e2f7196d5b402582.tar.gz rspamd-08aad032fade28a4647d2f63e2f7196d5b402582.zip |
[Minor] Fix known senders to work with empty mime recipients
Issue: #5070
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/known_senders.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) |