aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkikuchi <>2005-08-04 04:05:10 +0000
committertkikuchi <>2005-08-04 04:05:10 +0000
commitc65ee483e1d12f521c11faed9ff0d0986c16dd18 (patch)
tree8ec30229a456bf7c2b8b6c42c46cde1d5effe673
parent6e98fceb2cb8abf866b18cc1334566579e0d3eec (diff)
downloadmailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.tar.gz
mailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.tar.xz
mailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.zip
Fix multiline bug as suggested by Iain Pople [1250657]
Diffstat (limited to '')
-rw-r--r--Mailman/Handlers/SpamDetect.py2
1 files changed, 1 insertions, 1 deletions
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: