Subject: | Re: Unable to expire removed groups
| Date: | Thu, 02 Oct 2003 17:04:44 -0400
| From: | Bill <"news "@ larc.nasa.gov>
| Newsgroups: | news.software.nntp
|
Russ Allbery wrote:
>
> Yup. Known problem with tradspool. It's unfortunately difficult, due to
> the structure of the storage API, to get this right. I'm hoping to have
> it fixed in INN 2.5; in the meantime, you have to do mildly annoying
> things like looking for directories under ~news/spool/articles that don't
> correspond to newsgroups in the active file and deleting them.
>
One possible solution is to make a copy of the active file and retain an older
one and use diff to find the ones that were deleted. Then its a simple matter
to remove the old directories.
Something like this should work:
cd $pathdb
cp active.1 active.2
cp active active.1
diff -c active.1 active.2 > active..tmp
grep '^- ' active.tmp
|