🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52170

Re: Expire with cnfs

#52170
From: Russ Allbery
Date: Fri, 04 May 2001 23:25
81 lines
4537 bytes
Elizabeth Zaenger <liz@eecs.umich.edu> writes:

> OK, here's something that keeps coming up for me.  I am running 2.3.1,
> cnfs, tradindexed overview.  Things are working well, but at the end
> of each semester, I am asked to "expire" all current articles in a class
> newsgroup, so they can start clean.  The buffers for the class newsgroups
> are big enough so that they essentially "never" expire, so this means I 
> need to do it by hand.

> So, how do I?  I have groupbaseexpiry set to "false" (I saw Russ's
> answer to someone else about that last month or so).

In that case:

 - Create a new entry just for the class newsgroups in storage.conf and
   give it its own class number.  You can continue to store them in the
   same cycbuff as your other groups; it just needs to have a different
   class.

 - Add a line like:

       <class>:0:150:150

   to expire.ctl where <class> is that new class number.  This will keep
   all of the messages in class newsgroups for 150 days by default.  You
   should also add rules for all of your other storage.conf class numbers
   with expiration times significantly longer than the cycbuff rollover
   rate so that you don't prematurely expire any other articles.

 - Add flags="-v1 -N" to the command line of your news.daily invocation in
   cron.  The -N flag says to use expire.ctl rules for CNFS articles
   (normally expire.ctl is ignored for CNFS because it's cyclic), allowing
   expire to "prematurely" remove articles before they've been overwritten.

 - At the end of each semester, edit expire.ctl and change :150:150 to
   :5:5.  All articles older than five days will then be expired in the
   next run of expire, and the next day you can change it back.

> I also currently have *all* of our local groups (not just class groups)
> in one cycbuff, although I *could* put the class groups in one cycbuff
> by themselves, and expire all of them at the end of the term.

That's another alternative, yes.

> If I change them from the current cycbuff to a new one, would that just
> entail updating cycbuff.conf and storage.conf?

And restarting INN.  Right.

> Would I "lose" all the current postings, or would news still be able to
> track them, while using the new cycbuff?

You wouldn't lose any of the current postings (they'd continue to be
available until cancelled, expired, or overwritten).

> And *how* do I do the expiry on a single cycbuff if I do re-arrange
> things?

Well, the dirty way is to stop INN, zero out the cycbuff with dd or the
like, and then start INN again.  The next run of expire will then clean up
all of the overview information.

> Right now, I rmgroup and newgroup the class groups as requested, but
> then I also lose any "new" postings that have been made.  I would like
> to be able to expire the articles based on posting dates (MessageID's
> would be cumbersome, since there are lots of articles in these groups).
> Oh, and currently, I only expire the class newsgroups as requested--if I
> could continue to do that (I'm willing to expire them all en masse if I
> gotta) that would be best.

Unless you're using groupbaseexpiry, you have to assign a storage class
number to every set of postings you want to set a different expiration
time for.  So you could do that and just set a separate class number for
every class newsgroup, but you may run out of storage classes.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <ylelu4k87t.fsf@windlord.stanford.edu>
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!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
References: <watwv7x2mot.fsf@che.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ylelu4k87t.fsf@windlord.stanford.edu>
Subject: Re: Expire with cnfs
Date: Fri, 04 May 2001 23:25:26 +0000
From: Russ Allbery <rra@stanford.edu>
References: <watwv7x2mot.fsf@che.eecs.umich.edu>
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!newsfeed.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 80
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 989018726 11342 171.64.13.23 (4 May 2001 23:25:26 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)