From: moisseev Date: Thu, 10 Feb 2022 08:53:58 +0000 (+0300) Subject: [Minor] Disable Received tokens X-Git-Tag: 3.2~60^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4070%2Fhead;p=thirdparty%2Frspamd.git [Minor] Disable Received tokens --- diff --git a/lualib/lua_stat.lua b/lualib/lua_stat.lua index 920f20205c..39eb21b0e6 100644 --- a/lualib/lua_stat.lua +++ b/lualib/lua_stat.lua @@ -771,6 +771,11 @@ local function get_meta_stat_tokens(task, res, i) i = i + 1 end + --[[ + -- Disabled. + -- 1. Depending on the source the message has a different set of Received + -- headers as the receiving MTA adds another Received header. + -- 2. The usefulness of the Received tokens is questionable. local rh = task:get_received_headers() if rh and #rh > 0 then @@ -789,6 +794,7 @@ local function get_meta_stat_tokens(task, res, i) end end end + ]]-- return i end