From 742754035edfeefa9edc9a9e4771634e0a281225 Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 10 Feb 2022 11:53:58 +0300 Subject: [PATCH] [Minor] Disable Received tokens --- lualib/lua_stat.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lualib/lua_stat.lua b/lualib/lua_stat.lua index 920f20205..39eb21b0e 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 -- 2.39.5