commit 7427540: [Minor] Disable Received tokens
moisseev
moiseev at mezonplus.ru
Thu Feb 10 20:14:05 UTC 2022
Author: moisseev
Date: 2022-02-10 11:53:58 +0300
URL: https://github.com/rspamd/rspamd/commit/742754035edfeefa9edc9a9e4771634e0a281225 (refs/pull/4070/head)
[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
More information about the Commits
mailing list