Re: How to reclaim space in news.dat?

Kim Bergman (bergy1@telusplanet.net)
Sat, 28 Dec 1996 18:11:44 -0700

In article <X7GxyIcj1mbJ090yn@image.dk>, jbang@image.dk (Jens Bang) wrote:
>
>In article <yYZwyoag9j0H091yn@telusplanet.net>,
>bergy1@telusplanet.net (Kim Bergman) wrote:
>>>I know that doing an expire -r or an expire -o will delete messages from my
>>>news.dat file, but not reclaim the space they took up. How do I reclaim
>>>this space? My news.dat file is above 90 MB at the moment, and I would LOVE
>>>to get it down in size.
>>>
>>
>>Use rebuild -s to shrink news.dat. This also resets the expiry dates
>>on all messages so if you have a message due to expire (by age) tomorrow
>>and then you run rebuild -s, the message expiry date will be reset to
>>keepdays in the future. I am aware of no other way to shrink news.dat.
>
>What if I edit the active file, so all groups have the expiry set to 1 day,
>do the rebuild and then edit the active file back t what it was before?
>Will _all_ my articles be expired tomorrow? Or only the ones that were
>expiring anyway?
>

Don't know what would happen but I would like to. Try it and see if
it goes KABOOM! :) If it works you get the Atta Boy badge, if not
you get the That Took 'Nads badge *plus* the Had a News.dat badge.

>I don't quite understand the expiry scheme yet, but I'm trying. :-)
>

I don't think there is a method, documented or not documented, for
expiring and recovering unused space immediately without reseting
expiry dates on the unexpired messages. The unused space is retained
for a reason (maybe you missed the recent explanation of the
reason) and I don't think there is a method for circumventing
that feature. It _is_ a feature, not a bug. Perhaps the logic in the
program requires reseting expiry dates. On the other hand
maybe it is possible and maybe it will be there in the next revision.

I've noticed that after rebuild -s the news.dat grows unnecessarily
but not terribly, though it probably depends on your habits. Also, I
believe earlier versions, the 0.8x series, did return unused space
immediately. You might try going back to one of those versions as
they seemed to work pretty good.

-- 

Regards,

Kim Bergman