🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57459

Re: INN 2.x: regenerate overview?

#57459
From: Yves Martin
Date: Wed, 20 Mar 2002 13:57
60 lines
3107 bytes
Yves Martin <ymartin@nospam.fr> writes:

> jeff@litech.org (Jeffrey M. Vinocur) writes:
> 
> > In article <rone.a73i2s$s4s$1@ennui.org>, figmentality <^#*&$@ennui.org> wrote:
> > >
> > >I'm using tradindexed overview; due to a messy INN upgrade, my
> > >overview information seems to be a bit deranged.  How can i regenerate
> > >my overview information for the articles currently on my spool?
> > >expireover -a doesn't seem to work anymore...
> > 
> > You want makehistory -O.  (However, there is some weirdness with
> > makehistory in 2.3.x, not that you have much choice.[1])
> 
>   I have exactly the same issue.
>   But my tradspool is a really old one (there is few Xref in posts),
>   and it seems that makehistory is waiting for Xref to generate
>   overview and 'tradspool.map'. Am I wrong ?
> 
>   Is there a way to auto-generate Xref in old articles to make
>   my upgrade work (from 1.4 to 2.3.2) ?
>   What should Xref content be ?
> 
>   Or else are my message ids wrong ?
>   The server name has changed, is it the clue ?

  In fact, makehistory -O really need 'Xref' field in news.
  Of course because of overview.fmt. But if I remove it from
  overview.fmt, makehistory failed with error message.
 
  So I had to create a wonderful script to process my news:

#!/bin/bash

#echo "Process $1"
#  To convert INN 1.4 news into 2.x version
#  Add Xref to articles
#  In /var/spool/news/articles
#  process:  find * -type f -exec convert-articles.sh {} \;
#  with /var/spool/news in PATH

if grep "Xref:" $1 > /dev/null;
then
   echo "OK for $1"
else
   INDEX=`basename $1`
   GROUP=`dirname $1 | sed 's#/#.#g'`
   LINE="Xref: newsserver $GROUP:$INDEX"
   echo "$LINE"
   echo "$LINE" > $1.new
   cat $1 >> $1.new
   mv $1.new $1
fi

  Then overview contains all my news and my client is able to
  show them.

-- 
Yves Martin
Technical Details
Message-ID: <f6y9gn1gr9.fsf@pcyma.elca.ch>
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!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!deine.net!hamster.europeonline.net!newsfeed.europeonline.net!nslave.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader1.kpnqwest.net.POSTED!not-for-mail
References: <rone.a73i2s$s4s$1@ennui.org> <a73pca$lai$3@marduk.litech.org> <f6g02v32of.fsf@pcyma.elca.ch>

Show Full Headers
Complete Article Headers
Message-ID: <f6y9gn1gr9.fsf@pcyma.elca.ch>
Subject: Re: INN 2.x: regenerate overview?
Date: Wed, 20 Mar 2002 13:57:50 GMT
From: Yves Martin <ymartin@nospam.fr>
References: <rone.a73i2s$s4s$1@ennui.org> <a73pca$lai$3@marduk.litech.org> <f6g02v32of.fsf@pcyma.elca.ch>
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!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!deine.net!hamster.europeonline.net!newsfeed.europeonline.net!nslave.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader1.kpnqwest.net.POSTED!not-for-mail
Sender: yma@pcyma.elca.ch
Newsgroups: news.software.nntp
Organization: NoSpamming Club
Lines: 59
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 193.72.145.94
X-Complaints-To: news@kpnqwest.ch
X-Trace: nreader1.kpnqwest.net 1016632670 193.72.145.94 (Wed, 20 Mar 2002 14:57:50 MET)
NNTP-Posting-Date: Wed, 20 Mar 2002 14:57:50 MET