diff options
Diffstat (limited to 'src/plugins/lua/replies.lua')
-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 |