From: Vsevolod Stakhov Date: Fri, 20 May 2022 21:04:22 +0000 (+0100) Subject: [Minor] Maillist: Remove old maillist type X-Git-Tag: 3.3~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9288ce5643eab11ccdc67ae082507a4906d675cf;p=rspamd.git [Minor] Maillist: Remove old maillist type --- 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: --- List-Subscribe: --- List-Unsubscribe: --- List-Archive: --- List-Owner: --- 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('^$')) then - return false - end - header = task:get_header('list-owner') - if not (header and header:find('^$')) then - return false - end - header = task:get_header('list-help') - if not (header and header:find('^$')) then - return false - end - -- Subscribe and unsubscribe - header = task:get_header('list-subscribe') - if not (header and header:find('^$')) then - return false - end - header = task:get_header('list-unsubscribe') - if not (header and header:find('^$')) 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