🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7512

Re: INN Active File Cleaning.

#7512
From: Per Hedeland
Date: Sun, 12 May 1996 00:00
46 lines
2181 bytes
In article <slrn4p4rm4.7g.coneill@premier1.premier.net> coneill@premier1.premier.net (Clayton O'Neill) writes:
>On Thu, 09 May 96 17:51:57 GMT, Vern Soehner <vsoehner@nectech.com> wrote:
>>	Hi. I have fallen behind in rmgroup'ng my
>>active file. According to the FAQ.......I looks like I can do the 
>>following and delete the unwanted groups from my active file. 
>>If I do this, what happens to the associated directories? Will they
>>get removed by expire in news.daily or do I remove them manualy myself?
>>Thanks very much.! 
>
>They will automatically be removed by expire as they become old enough.

No, the *directories* will not be removed, only the articles. Of course
there's not much point in having the articles stay around until normal
expiration, since they can't easily be read when their groups aren't in
active anymore, so I normally remove both articles and (where
appropriate) directories at the same time as removing the groups from
active.

You can't just rm -r the directory though, as there are often subgroups
that should remain - here's a simplified snippet from a script I use:

cd $SPOOLDIR
for g in $groups
do
	dir=`echo $g | tr . /`
	ctlinnd rmgroup $g
	spdir=$dir
	rm -f $spdir/*
	while rmdir $spdir
	do
		echo removed $spdir
		spdir=`echo $spdir | sed 's;/[^/]*$;;'`
	done
	rm -f over.view/$dir/.overview
	while rmdir over.view/$dir
	do
		echo removed over.view/$dir
		dir=`echo $dir | sed 's;/[^/]*$;;'`
	done
done

--Per Hedeland
per@erix.ericsson.se

Technical Details
Message-ID: <4n5rk6$ch8@euas20.eua.ericsson.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4mtbbt$l4o_001@cosmos.nectech.com> <slrn4p4rm4.7g.coneill@premier1.premier.net>

Show Full Headers
Complete Article Headers
Message-ID: <4n5rk6$ch8@euas20.eua.ericsson.se>
Subject: Re: INN Active File Cleaning.
Date: Sun, 12 May 1996 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <4mtbbt$l4o_001@cosmos.nectech.com> <slrn4p4rm4.7g.coneill@premier1.premier.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 154484497
Distribution: inet
Organization: Ericsson Telecom, Stockholm, Sweden
Nntp-posting-user: per
Newsgroups: news.software.nntp