summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-29 17:26:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-29 17:26:27 +0000
commitc1b3e4821a627c3d9800b57d04d38d10165422bb (patch)
treea058912ffd08f540348753d2fffd207341577e5a /rules
parent13dd78c6878016e01030928dc0fdcbbe81d4f92f (diff)
downloadrspamd-c1b3e4821a627c3d9800b57d04d38d10165422bb.tar.gz
rspamd-c1b3e4821a627c3d9800b57d04d38d10165422bb.zip
[Rules] Remove ancient and inefficient rules
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua43
1 files changed, 0 insertions, 43 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index b4884b575..026ca35ac 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -646,49 +646,6 @@ reconf['MISSING_MIMEOLE'] = {
group = 'headers'
}
--- Header delimiters
-local yandex_from = 'From=/\\@(yandex\\.ru|yandex\\.net|ya\\.ru)/iX'
-local yandex_x_envelope_from = 'X-Envelope-From=/\\@(yandex\\.ru|yandex\\.net|ya\\.ru)/iX'
-local yandex_return_path = 'Return-Path=/\\@(yandex\\.ru|yandex\\.net|ya\\.ru)/iX'
-local yandex_received = 'Received=/^\\s*from \\S+\\.(yandex\\.ru|yandex\\.net)/mH'
-local yandex = string.format('(%s) & ((%s) | (%s) | (%s))', yandex_received, yandex_from, yandex_x_envelope_from, yandex_return_path)
--- Tabs as delimiters between header names and header values
-function check_header_delimiter_tab(task, header_name)
- for _,rh in ipairs(task:get_header_full(header_name)) do
- if rh['tab_separated'] then return true end
- end
- return false
-end
-reconf['HEADER_FROM_DELIMITER_TAB'] = {
- re = string.format('(%s) & !(%s)', 'check_header_delimiter_tab(From)', yandex),
- score = 1.0,
- description = 'Header From begins with tab',
- group = 'headers'
-}
-reconf['HEADER_TO_DELIMITER_TAB'] = {
- re = string.format('(%s) & !(%s)', 'check_header_delimiter_tab(To)', yandex),
- score = 1.0,
- description = 'Header To begins with tab',
- group = 'headers'
-}
-reconf['HEADER_CC_DELIMITER_TAB'] = {
- re = string.format('(%s) & !(%s)', 'check_header_delimiter_tab(Cc)', yandex),
- score = 1.0,
- description = 'Header To begins with tab',
- group = 'headers'
-}
-reconf['HEADER_REPLYTO_DELIMITER_TAB'] = {
- re = string.format('(%s) & !(%s)', 'check_header_delimiter_tab(Reply-To)', yandex),
- score = 1.0,
- description = 'Header Reply-To begins with tab',
- group = 'headers'
-}
-reconf['HEADER_DATE_DELIMITER_TAB'] = {
- re = string.format('(%s) & !(%s)', 'check_header_delimiter_tab(Date)', yandex),
- score = 1.0,
- description = 'Header Date begins with tab',
- group = 'headers'
-}
-- Empty delimiters between header names and header values
local function gen_check_header_delimiter_empty(header_name)
return function(task)