I've been asked to restrict our group's Mailman list to showing only the last six months of archives. Is there any way to remove archived messages older than a certain date and reflect that removal in the archive header's "index.html" file?
Thanks, Rick
Rick Morrison wrote:
I've been asked to restrict our group's Mailman list to showing only the last six months of archives. Is there any way to remove archived messages older than a certain date and reflect that removal in the archive header's "index.html" file?
Edit the archives/private/listname.mbox/listname.mbox file to remove all the older messages. If you don't care about keeping the older messages at all, just edit the file in place and then run Mailman's
bin/arch --wipe listname
to rebuild the archive. If you do want to keep the old messages, There are multiple ways to proceed. I suggest keeping archives/private/listname.mbox/listname.mbox as the full archive and saving the pruned file as say archives/private/listname.mbox/listname.mbox.recent and then rebuilding the archive with
bin/arch --wipe listname archives/private/listname.mbox/listname.mbox.recent
(all on one line)
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Thu, Dec 9, 2010 at 11:53 PM, Mark Sapiro <mark@msapiro.net> wrote:
Rick Morrison wrote:
I've been asked to restrict our group's Mailman list to showing only the last six months of archives. Is there any way to remove archived messages older than a certain date and reflect that removal in the archive header's "index.html" file?
Edit the archives/private/listname.mbox/listname.mbox file to remove all the older messages. If you don't care about keeping the older messages at all, just edit the file in place and then run Mailman's
bin/arch --wipe listname
Thanks to both repliers - this worked well. I ended up using "archivemail" ( http://archivemail.sourceforge.net/manpage.html) for the mbox handling and running the whole thing from a cron-launched Python script.
participants (2)
-
Mark Sapiro
-
Rick Morrison