🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39031

Re: INN2, /overview fills, double posts?

#39031
From: Kjetil Torgrim Homme
Date: Mon, 09 Aug 1999 00:00
43 lines
1810 bytes
When overview fills, INN does not notice at once since that code uses
stdio for writing the records.  In my experience, the overview data
will always get corrupted (overview data for articles pop up in the
wrong groups, garbage characters etc.) and a makehistory is needed.  I
enclose the script I use at the end.


Kjetil T.

#! /bin/sh

. /local/lib/news/lib/innshellvars

TMPDIR=/news/disk/c3t3/tmp
echo "Rebuilding essential news databases"

rm -f $PATHTMP/newindex
rm -f $PATHTMP/newindex.sorted

echo -n "Counting history entries: "
case $1 in
    ?*) COUNT=$1
	;;
    *)  COUNT=`/bin/ls -l $PATHDB/history | awk '{ printf ("%d", $5/100) }'`
	;;
esac
echo $COUNT

echo "Scanning spool"
$PATHBIN/makehistory -I $PATHTMP/newindex -O -n 

echo "Rebuilding history index"
$PATHBIN/makehistory -o -r -s $COUNT

echo "Sorting overindex input file"
sort -t' ' +1 -2 $PATHTMP/newindex > $PATHTMP/newindex.sorted

echo "Rebuilding overindex"
expireindex -a -o -z < $PATHTMP/newindex.sorted

echo "Rebuild completed"

Technical Details
Message-ID: <1r4si9w9r2.fsf@haey.ifi.uio.no>
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!not-for-mail
References: <7oik8p$87s$2@News.Dal.Ca>

Show Full Headers
Complete Article Headers
Message-ID: <1r4si9w9r2.fsf@haey.ifi.uio.no>
Subject: Re: INN2, /overview fills, double posts?
Date: Mon, 09 Aug 1999 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <7oik8p$87s$2@News.Dal.Ca>
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!not-for-mail
X-Deja-AN: 510542427
X-Complaints-To: usenet@mimir.ifi.uio.no
X-Trace: mimir.ifi.uio.no 934193057 27425 129.240.64.139 (9 Aug 1999 10:04:17 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 9 Aug 1999 10:04:17 GMT
Newsgroups: news.software.nntp