From 9007e71c0c7d22e9e2c0c58926955a896802b48f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20=C3=89LIE?= Date: Tue, 20 Jun 2023 13:46:09 +0200 Subject: [PATCH] Exclude news.lists.filters from PHN filter NoCeM notices were otherwise rejected. Also fix add initial "^" and final "\." in the html_allowed pattern. --- pyclean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyclean.py b/pyclean.py index 4a0947f..d3ff1a1 100644 --- a/pyclean.py +++ b/pyclean.py @@ -1383,7 +1383,7 @@ def __init__(self): '^linux\.', '^lucky\.freebsd', '^gnus\.', '\.lists\.freebsd\.'] self.bin_allowed = self.regex_compile(bin_allowed) - html_allowed = ['^pgsql\.', '^relcom\.', '^gmane', 'microsoft', + html_allowed = ['^pgsql\.', '^relcom\.', '^gmane\.', '^microsoft\.', '^mailing\.', '^gnus\.'] self.html_allowed = self.regex_compile(html_allowed) # Exclude from all EMP filters. @@ -1397,7 +1397,7 @@ def __init__(self): '^alt\.prophecies\.nostradamus'] self.ihn_exclude = self.regex_compile(ihn_exclude) # Exclude groups from PHN filter. - phn_exclude = ['^alt\.privacy\.'] + phn_exclude = ['^alt\.privacy\.', '^news\.lists\.filters'] self.phn_exclude = self.regex_compile(phn_exclude) # Bad posting-hosts. bad_ph = ['newsguy\.com', 'tornevall\.net']