Update of /cvsroot/mailman/mailman/Mailman/Gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10308

Modified Files:
        Privacy.py 
Log Message:
Fix for bug-id 1230865: Spam filter get lost.
Update the filter only if there is hdrfilter_* input.


Index: Privacy.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Gui/Privacy.py,v
retrieving revision 2.18
retrieving revision 2.19
diff -u -d -r2.18 -r2.19
--- Privacy.py  28 Aug 2005 05:31:27 -0000      2.18
+++ Privacy.py  21 Sep 2005 04:25:00 -0000      2.19
@@ -443,6 +443,10 @@
     # _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

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to