🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52480

Re: Expire with cnfs

#52480
From: bill davidsen
Date: Wed, 23 May 2001 22:04
50 lines
3246 bytes
In article <watwv7x2mot.fsf@che.eecs.umich.edu>,
Elizabeth Zaenger  <liz@eecs.umich.edu> wrote:
| 
| 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?

  One server, right? If I had to do this, I would be tempted to take the
overview file, using 'getover' or similar, use 'cut' to extract the
Message-ID info, and then use shell/perl/sed to generate a script file
of ctlinnd commands for local cancel.

How easy is this? A three line script to take the names of the groups
and generate the output you need to cancel all the articles.
================================================================
deathstar:news> cat cancel.tmp
NewsServer="newssvr10"
getover ${NewsServer} "$@" | cut -f5 |
xargs -i /bin/echo ctlinnd cancel \"{}\"

deathstar:news> sh cancel.tmp local1.test local2.test >y.tmp
Getting local2.test
Getting local1.test

deathstar:news> head -10 y.tmp
ctlinnd cancel "<8tn1oh$5di0$1@newssvr04-int.news.local1.com>"
ctlinnd cancel "<3A07103D.AEEC8215@local1.net>"
ctlinnd cancel "<8ujh2g$coog$1@newssvr06-en0.news.local1.com>"
ctlinnd cancel "<8ujonv$eka8$1@newssvr06-en0.news.local1.com>"
ctlinnd cancel "<3A15BEF4.1020106@local1.net>"
ctlinnd cancel "<3A15D77E.9090106@local1.net>"
ctlinnd cancel "<3A24F6B7.5DE7A94D@local1.net>"
ctlinnd cancel "<3A253478.356C773D@local1.net>"
ctlinnd cancel "<3A25C9B0.7BE6AFD7@local1.net>"
ctlinnd cancel "<909127$ci4e$1@newssvr06-en0.news.local1.com>"
================================================================

  If you have a lot of cross-posting you can put a "sort -u" before the
xargs, just don't run out of temp space.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait."  -seen in a doctor's office
Technical Details
Message-ID: <9ehc4h$1fd4$1@newssvr05-en0.news.prodigy.com>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsen
References: <watwv7x2mot.fsf@che.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <9ehc4h$1fd4$1@newssvr05-en0.news.prodigy.com>
Subject: Re: Expire with cnfs
Date: Wed, 23 May 2001 22:04:01 +0000
From: davidsen@tmr.com (bill davidsen)
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newscon02.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsen
Newsgroups: news.software.nntp
Organization: TMR Associates, Schenectady NY
Lines: 49
NNTP-Posting-Host: 192.168.199.92
X-Trace: newssvr05-en0.news.prodigy.com 990655441 000 192.168.199.92 (23 May 2001 22:04:01 GMT)
X-Complaints-To: abuse@prodigy.net
NNTP-Posting-Date: Wed, 23 May 2001 22:04:01 +0000 (UTC)
Originator: davidsen@darkstar.prodigy.com