On Thu, 3 Apr 2003, Dave Stern - Former Rocket Scientist wrote: > How do you trim back archives? I presume > > find {$MAILMAN}/archives/private -name "*.gz" -exec rm "{}" \; > > would be a bad idea as the indices still think they exist (or would > the cronjobs fix this) >
Before I get a flurry of RTF-faq messages, perhaps I should explain in better detail. Let's say I wanna remove ALL archived data prior to 2003. I could find {$MAILMAN}/archives/private -name "2002-*" -exec rm -rf "{}" \; which will take care of the txt an gzipped files and running {$MAILMAN}/bin/arch `{$MAILMAN}/bin/list_lists` would theoretically rearchive them but the problem is the index.html files for each list still has a stanza for each month. What I'm looking for is an automated way of cleaning things up. I don't wanna have to manually edit the idex.html altho it sounds like I may have to ie something like doing another find for index.html, exec sed where it searches for "2002", go back a line to the beginning of the <tr> stanza, delete to EOF, and re-add </table> </BODY> </HTML> Yech!!!! =-=-=-=-=-=-=-=-=-=-=-=- generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-=-=-= David Stern University of Maryland Institute for Advanced Computer Studies ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org