🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50433

Re: inn 2.3 storing problem

#50433
From: Terrance Richard Boyes
Date: Mon, 05 Feb 2001 23:06
54 lines
3451 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Damir Jurica <djurica@damir.globalnet.hr> writes:

[snip]

>> what can i do about this to fix things up?

> I keep meaning to check to see if deleting all of the articles that were
> stored without overview information would do it.  This should be pretty
> straightforward using a Perl script to trawl through the active file,
> check the corresponding spool directories, and delete any articles with
> article numbers higher than the high mark in the active file.

Yep, that's exactly what I ended up doing the other week, having
rebuilt the history/overview I was still getting the same error.
So I knocked up a little awk script to do it, for tradspool at
least. I started by getting a list of all the article numbers,
in a specific format to make the awking a little simpler.

$ cd ~news/spool/articles
$ find . -type f -printf "%h %f\n" > ~news/tmp/articles.lis
$ cd ~news

which lists directory and article number as separate fields.

Then awk -f ckact.awk ~news/tmp/articles.lis > ~news/tmp/articles.over
And the output file is a list of all articles which have a higher
number than the highmark in the active file. And where ckact.awk 
is the script

  BEGIN {
    while(getline<"db/active">0) {
# slightly nasty, transform "a.b.c" to "./a/b/c", but...
    group="./"gensub(/\./,"/","g",$1)
    groups[group]=$2+0
    }
    close("~news/db/active")
  }
  {
    group=$1
# ... it makes it easy to use an associative array here.
    if(groups[group]<$2)
      print $0
  }

Though rather than just deleting them, I moved them elsewhere, then
rnews'd them all back in.

-- 
<URL:http://www.pierrot.co.uk/>                                  Team AMIGA
1.79 x 10^12 furlongs per fortnight -- it's not just a good idea, it's
the law!

Technical Details
Message-ID: <20010205.230625.9E9801DE.3eaa@pierrot.co.uk>
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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
References: <slrn97t2d0.mcd.djurica@damir.globalnet.hr> <yl1ytcg691.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <20010205.230625.9E9801DE.3eaa@pierrot.co.uk>
Subject: Re: inn 2.3 storing problem
Date: Mon, 05 Feb 2001 23:06:25 +0000
From: tez@pierrot.co.uk (Terrance Richard Boyes)
References: <slrn97t2d0.mcd.djurica@damir.globalnet.hr> <yl1ytcg691.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!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!feeder.qis.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: ECL.Net
X-Trace: mail2news.demon.co.uk 981414424 mail2news:4450 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!tele-post-20.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk
X-Lan-Trace: news.pierrot.lan 20010205.230625 news:3eaa IDENT tez@pierrot.demon.co.uk
User-Agent: tin/1.4.3-20000502 ("Marian") (AMIGA)
X-Cancel-Lock: TEZT:6b44b1496fc831a8ae6e7d3836b47258 f8d3ff06cfbc2420535f1b455e0705a6
X-PGP-Keyfile: <URL:http://www.pierrot.co.uk/pgpauth/>
X-PGP-Fingerprint: 20 66 0F E8 85 64 9C 2C 6F 82 6F 19 6C 2F 6A 1D
X-PGP-Auth: pub 512/3A14C4B9 1999/04/22 Tez Boyes <tez@pierrot.co.uk> iQBVAwUBOn8x9UXush46FMS5AQFhPgH/TYJlacfecYzF5SbiO/E2dUIQ5pzWa7Yq R3EEZLlZnWCKyksN1Fw9GLF42z12abPUvzPbgwQcCgaQhcynSZXuvw== =A9At
X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk>
Lines: 53