diff options
author | tkikuchi <> | 2005-08-04 04:05:10 +0000 |
---|---|---|
committer | tkikuchi <> | 2005-08-04 04:05:10 +0000 |
commit | c65ee483e1d12f521c11faed9ff0d0986c16dd18 (patch) | |
tree | 8ec30229a456bf7c2b8b6c42c46cde1d5effe673 | |
parent | 6e98fceb2cb8abf866b18cc1334566579e0d3eec (diff) | |
download | mailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.tar.gz mailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.tar.xz mailman2-c65ee483e1d12f521c11faed9ff0d0986c16dd18.zip |
Fix multiline bug as suggested by Iain Pople [1250657]
-rw-r--r-- | Mailman/Handlers/SpamDetect.py | 2 |
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: |