From ff94888a8f381e3ad161e8e06d130160140ea4ec Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Sun, 23 Oct 2005 06:43:19 +0000 Subject: Fix bug-id 1230865: Spam filter get lost. Update the filter only if there is hdrfilter_* input. --- Mailman/Gui/Privacy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3