summaryrefslogtreecommitdiffstats
path: root/rules/headers_checks.lua
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2020-12-12 19:30:46 +0000
committerAnton Yuzhaninov <citrin+git@citrin.ru>2020-12-12 19:30:46 +0000
commita7aa9adc0cb2e6046b9136992eb41c0f89a2f401 (patch)
tree6370aa7f5605be7f4c934649b1a4989c12f2570a /rules/headers_checks.lua
parentdf5e7c7fb3079306562875dabc36448ede06c69c (diff)
downloadrspamd-a7aa9adc0cb2e6046b9136992eb41c0f89a2f401.tar.gz
rspamd-a7aa9adc0cb2e6046b9136992eb41c0f89a2f401.zip
[Minor] Remove FAKE_REPLY_C and move FAKE_REPLY rule to regexp module
FAKE_REPLY_C rule no longer works because MUA it used are no longer used (and ones which are used changed headers they add). In theory one can test all popular modern MUA and see which add only References, which only In-Reply-To and which add both headers. But it will be a lot of work to maintain such rule up to date. It still has a small number of hits, but mostly because some spammers use old X-Mailer headers. This should be addressed separately. While here re-create FAKE_REPLY as a regexp module rule - this way it should be more efficient.
Diffstat (limited to 'rules/headers_checks.lua')
-rw-r--r--rules/headers_checks.lua15
1 files changed, 0 insertions, 15 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index ec8208d8c..b62676293 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -603,21 +603,6 @@ rspamd_config.MV_CASE = {
group = 'headers'
}
-rspamd_config.FAKE_REPLY = {
- callback = function (task)
- local subject = task:get_header('Subject')
- if (subject and subject:lower():find('^re:')) then
- local ref = task:get_header('References')
- local rt = task:get_header('In-Reply-To')
- if (not (ref or rt)) then return true end
- end
- return false
- end,
- description = 'Fake reply',
- score = 1.0,
- group = 'headers'
-}
-
local check_from_id = rspamd_config:register_symbol{
name = 'CHECK_FROM',
type = 'callback',