aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2022-02-10 11:53:58 +0300
committermoisseev <moiseev@mezonplus.ru>2022-02-10 11:53:58 +0300
commit742754035edfeefa9edc9a9e4771634e0a281225 (patch)
treec9b3565df50538ba7f1d67ed33189aea5b701553 /lualib
parent4d584cad637c001cf4026d23cb46b0fb06d2999b (diff)
downloadrspamd-742754035edfeefa9edc9a9e4771634e0a281225.tar.gz
rspamd-742754035edfeefa9edc9a9e4771634e0a281225.zip
[Minor] Disable Received tokens
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_stat.lua6
1 files changed, 6 insertions, 0 deletions
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