Revision: 8146
http://svn.sourceforge.net/mailman/?rev=8146&view=rev
Author: msapiro
Date: 2007-01-19 19:34:42 -0800 (Fri, 19 Jan 2007)
Log Message:
-----------
Changed header_filter_rules processing to ignore blank patterns.
Modified Paths:
--------------
branches/Release_2_1-maint/mailman/Mailman/Handlers/SpamDetect.py
Modified: branches/Release_2_1-maint/mailman/Mailman/Handlers/SpamDetect.py
===================================================================
--- branches/Release_2_1-maint/mailman/Mailman/Handlers/SpamDetect.py
2007-01-19 04:38:06 UTC (rev 8145)
+++ branches/Release_2_1-maint/mailman/Mailman/Handlers/SpamDetect.py
2007-01-20 03:34:42 UTC (rev 8146)
@@ -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 @@
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
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org