diff options
author | bwarsaw <> | 2003-12-24 17:07:28 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-12-24 17:07:28 +0000 |
commit | 443295a032807d94f71d0b4dcb2108cd1b58745f (patch) | |
tree | ebdfb77ebb46a08dbba6b47825adfd481f3f4291 /Mailman/Archiver | |
parent | 5d43aca1f494afabeefce07b6d04f08f128a5f0e (diff) | |
download | mailman2-443295a032807d94f71d0b4dcb2108cd1b58745f.tar.gz mailman2-443295a032807d94f71d0b4dcb2108cd1b58745f.tar.xz mailman2-443295a032807d94f71d0b4dcb2108cd1b58745f.zip |
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.
Diffstat (limited to 'Mailman/Archiver')
-rw-r--r-- | Mailman/Archiver/HyperArch.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py index 9f64def7..e922b020 100644 --- a/Mailman/Archiver/HyperArch.py +++ b/Mailman/Archiver/HyperArch.py @@ -559,6 +559,12 @@ class Article(pipermail.Article): break self.body.append(line) + def finished_update_article(self): + self.body = [] + try: + del self.html_body + except AttributeError: + pass class HyperArchive(pipermail.T): |