Re: news.dat doesn't shrink

From: Michael Gray (labrat@onr.com)
Date: Wed, 18 Jun 1997 22:33:09 -0500

On Wed, 18 Jun 97 15:35:03 ,
"Oliver Kohr" <okohr@ibm.net> wrote this about news.dat doesn't shrink:
>Hello Yarn-Users,
>
>my problem using Yarn/2 0.92 is that my news.dat doesn't shrink.Today it growes to 37
>MB. I haven't subscribed to any bin or warez-group. How can I get rid of that big
>messagebase?
>Corrently I call a cmd to expire:
>===============
>@echo off
>set hostname=amatida.limes.de
>set home=d:\usenet\nacamar
>set yarn=d:\usenet\nacamar
>set tmp=e:\temp
>SET TZ=CET-1CES,3,-1,0,7200,10,-1,0,10800,3600
>expire.exe -o -q
>rebuild -s
>==============

Rebuild resets the expire date for all current messages (at least with
the -h option and with -s, I believe.) It's designed to repair a
corrupted database (and to compact a really large newsbase.) So in
essence you'll never actually expire any messages unless they have an
Expires date in the header. Try remming out that line, wait 12 days
and you should get rid of most of the database. Of course, you'll
have to contend with the 200 new messages each day, but it WILL shrink
eventually. Also Tim Middleton's NNIGN is handy to keep track of how
much free space is present in your OS/2 database (is there a DOS
port?) Tim writes some really handy stuff for Yarn.

>My configfile tells yarn to keep messages 12 days, max-keep 30 days.
>Although I import a few hundred news per day, expire will only delete less than 20
>messages per day.
>
>What have I done wrong?

-- 
======= Remove the 5 digit spamkiller from address before replying ==========
: LabRat 'at' onr 'dot' com          : Just because you're paranoid doesn't :
:                                    : mean they're not out to get you      :
=============================================================================