aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authormsapiro <>2007-01-20 03:34:42 +0000
committermsapiro <>2007-01-20 03:34:42 +0000
commiteee82d55eee059a5b0f0ae47817f3351a5d114e1 (patch)
tree748968fd838d84dcf5089f9f86be0778cfe9b4ff /Mailman
parent76bf1d8cfa737a64ab1e65877e71a8ee91eeb08b (diff)
downloadmailman2-eee82d55eee059a5b0f0ae47817f3351a5d114e1.tar.gz
mailman2-eee82d55eee059a5b0f0ae47817f3351a5d114e1.tar.xz
mailman2-eee82d55eee059a5b0f0ae47817f3351a5d114e1.zip
Changed header_filter_rules processing to ignore blank patterns.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Handlers/SpamDetect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/SpamDetect.py b/Mailman/Handlers/SpamDetect.py
index 5eeddd5b..5cbb766b 100644
--- a/Mailman/Handlers/SpamDetect.py
+++ b/Mailman/Handlers/SpamDetect.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -119,6 +119,9 @@ def process(mlist, msg, msgdata):
for pattern in patterns.splitlines():
if pattern.startswith('#'):
continue
+ # ignore 'empty' patterns
+ if not pattern.strip():
+ continue
if re.search(pattern, headers, re.IGNORECASE|re.MULTILINE):
if action == mm_cfg.DISCARD:
raise Errors.DiscardMessage