commit 9288ce5: [Minor] Maillist: Remove old maillist type
Vsevolod Stakhov
vsevolod at rspamd.com
Fri May 20 21:21:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-20 22:04:22 +0100
URL: https://github.com/rspamd/rspamd/commit/9288ce5643eab11ccdc67ae082507a4906d675cf
[Minor] Maillist: Remove old maillist type
---
src/plugins/lua/maillist.lua | 43 -------------------------------------------
1 file changed, 43 deletions(-)
diff --git a/src/plugins/lua/maillist.lua b/src/plugins/lua/maillist.lua
index 78642c4aa..eb5669359 100644
--- a/src/plugins/lua/maillist.lua
+++ b/src/plugins/lua/maillist.lua
@@ -123,47 +123,6 @@ local function check_ml_mailman(task)
return true
end
--- Subscribe.ru
--- List-Id: <*.subscribe.ru>
--- List-Help: <https://subscribe.ru/catalog/*>
--- List-Subscribe: <mailto:*-sub at subscribe.ru>
--- List-Unsubscribe: <mailto:*-unsub at subscribe.ru>
--- List-Archive: <https://subscribe.ru/archive/*>
--- List-Owner: <mailto:*@subscribe.ru>
--- List-Post: NO
-local function check_ml_subscriberu(task)
- -- List-Id
- local header = task:get_header('list-id')
- if not (header and header:find('^<.*%.subscribe%.ru>$')) then
- return false
- end
- -- Other headers
- header = task:get_header('list-archive')
- if not (header and header:find('^<https?://subscribe%.ru/archive/.+>$')) then
- return false
- end
- header = task:get_header('list-owner')
- if not (header and header:find('^<mailto:.+ at subscribe%.ru>$')) then
- return false
- end
- header = task:get_header('list-help')
- if not (header and header:find('^<https?://subscribe%.ru/catalog/.+>$')) then
- return false
- end
- -- Subscribe and unsubscribe
- header = task:get_header('list-subscribe')
- if not (header and header:find('^<mailto:.+-sub at subscribe%.ru>$')) then
- return false
- end
- header = task:get_header('list-unsubscribe')
- if not (header and header:find('^<mailto:.+-unsub at subscribe%.ru>$')) then
- return false
- end
-
- return true
-
-end
-
-- Google groups detector
-- header exists X-Google-Loop
-- RFC 2919 headers exist
@@ -246,8 +205,6 @@ local function check_maillist(task)
task:insert_result(symbol, 1, 'ezmlm')
elseif check_ml_mailman(task) then
task:insert_result(symbol, 1, 'mailman')
- elseif check_ml_subscriberu(task) then
- task:insert_result(symbol, 1, 'subscribe.ru')
elseif check_ml_googlegroup(task) then
task:insert_result(symbol, 1, 'googlegroups')
elseif check_ml_cgp(task) then
More information about the Commits
mailing list