From c65ee483e1d12f521c11faed9ff0d0986c16dd18 Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Thu, 4 Aug 2005 04:05:10 +0000 Subject: Fix multiline bug as suggested by Iain Pople [1250657] --- Mailman/Handlers/SpamDetect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Handlers/SpamDetect.py') diff --git a/Mailman/Handlers/SpamDetect.py b/Mailman/Handlers/SpamDetect.py index 297a4cc7..46c5bb29 100644 --- a/Mailman/Handlers/SpamDetect.py +++ b/Mailman/Handlers/SpamDetect.py @@ -128,7 +128,7 @@ def process(mlist, msg, msgdata): for pattern in patterns.splitlines(): if pattern.startswith('#'): continue - if re.search(pattern, headers, re.IGNORECASE): + if re.search(pattern, headers, re.IGNORECASE|re.MULTILINE): if action == mm_cfg.DISCARD: raise Errors.DiscardMessage if action == mm_cfg.REJECT: -- cgit v1.2.3