Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1:/tmp/cvs-serv4229

Modified Files:
      Tag: Release_2_1-maint
        HyperArch.py 
Log Message:
finished_update_article(): Richard Barrett's fix to reduce Pipermail
archive bloat by deleting the html_body attribute on Article objects.
Closes SF bug #835332.

This only reduces bloat on new articles.  See bin/rb-archfix to clean
up older archives.


Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 2.37.2.5
retrieving revision 2.37.2.6
diff -u -d -r2.37.2.5 -r2.37.2.6
--- HyperArch.py        1 Dec 2003 01:11:15 -0000       2.37.2.5
+++ HyperArch.py        24 Dec 2003 17:07:28 -0000      2.37.2.6
@@ -559,6 +559,12 @@
                 break
             self.body.append(line)
 
+    def finished_update_article(self):
+        self.body = []
+        try:
+            del self.html_body
+        except AttributeError:
+            pass        
 
 
 class HyperArchive(pipermail.T):



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

Reply via email to