From: Vsevolod Stakhov Date: Sun, 20 Nov 2016 15:28:03 +0000 (+0000) Subject: [Minor] Store replies for local networks as well X-Git-Tag: 1.4.0~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=22cab77cc47d08152d3608e560a56d910a54462c;p=rspamd.git [Minor] Store replies for local networks as well --- diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua index cb34d4fa7..b5c7c6ada 100644 --- a/src/plugins/lua/replies.lua +++ b/src/plugins/lua/replies.lua @@ -86,7 +86,8 @@ local function replies_set(task) end end -- If sender is unauthenticated return - if task:get_user() == nil then + local ip = task:get_ip() + if task:get_user() == nil and not (ip and ip:is_local()) then return end -- If no message-id present return