aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Gui
diff options
context:
space:
mode:
authortkikuchi <>2005-10-23 06:43:19 +0000
committertkikuchi <>2005-10-23 06:43:19 +0000
commitff94888a8f381e3ad161e8e06d130160140ea4ec (patch)
tree2dc5a8666d4ff072964a1b4c6cc791303d7aefba /Mailman/Gui
parent080fe137caa03092ac80cad2c252d63f141e544a (diff)
downloadmailman2-ff94888a8f381e3ad161e8e06d130160140ea4ec.tar.gz
mailman2-ff94888a8f381e3ad161e8e06d130160140ea4ec.tar.xz
mailman2-ff94888a8f381e3ad161e8e06d130160140ea4ec.zip
Fix bug-id 1230865: Spam filter get lost.
Update the filter only if there is hdrfilter_* input.
Diffstat (limited to 'Mailman/Gui')
-rw-r--r--Mailman/Gui/Privacy.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py
index 1ae2699a..b47cf382 100644
--- a/Mailman/Gui/Privacy.py
+++ b/Mailman/Gui/Privacy.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2005 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
@@ -443,6 +443,10 @@ class Privacy(GUIBase):
# _getValidValue() will essentially ignore any hdrfilter_* form variables.
# TK: we should call this function only in subcat == 'spam'
def _handleForm(self, mlist, category, subcat, cgidata, doc):
+ # TK: If there is no hdrfilter_* in cgidata, we should not touch
+ # the header filter rules.
+ if not cgidata.has_key('hdrfilter_rebox_01'):
+ return
# First deal with
rules = []
# We start i at 1 and keep going until we no longer find items keyed