From b27b58acd88bb4b389c63d0e6c0a449aa42998ee Mon Sep 17 00:00:00 2001 From: tkikuchi Date: Wed, 21 Sep 2005 04:25:00 +0000 Subject: Fix for bug-id 1230865: Spam filter get lost. Update the filter only if there is hdrfilter_* input. --- Mailman/Gui/Privacy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mailman/Gui/Privacy.py b/Mailman/Gui/Privacy.py index 1ae2699a7..302c62d2c 100644 --- a/Mailman/Gui/Privacy.py +++ b/Mailman/Gui/Privacy.py @@ -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.3.1