diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-27 11:01:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-27 11:01:40 +0100 |
commit | 4951493fadf79273a54da96839230fbf175e076c (patch) | |
tree | 1c455f3f5df5eda5fac40d0a55cbfd367a536e5e /src | |
parent | 544e12fbe78f85bf706d90da30180d353fbe203c (diff) | |
download | rspamd-4951493fadf79273a54da96839230fbf175e076c.tar.gz rspamd-4951493fadf79273a54da96839230fbf175e076c.zip |
[Minor] Replies: Fix predicate
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/replies.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index 9161ee043..2160b0c50 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -69,13 +69,13 @@ local function replies_check(task) local rcpts = task:get_recipients('mime') if rcpts then - local predicate = function(input_rcpt) + local filter_predicate = function(input_rcpt) local real_rcpt_h = make_key(input_rcpt:lower(), 8) return real_rcpt_h == stored_rcpt end - if fun.any(predicate, rcpts) then + if fun.any(filter_predicate, fun.map(function(rcpt) return rcpt.addr or '' end, rcpts)) then return true end |