🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Ian Dickinson Wed, 30 Jun 1993 11:24
Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#1993
Author: Ian Dickinson
Date: Wed, 30 Jun 1993 11:24
30 lines
2687 bytes
In article <1993Jun29.203723.1317@anl433.uucp>,
	iain.lea@anl433.erlm.siemens.de (Iain Lea) writes:
>Jason Haar (j.haar@csc.canterbury.ac.nz) wrote:
>: If someone changes their local INN so that Xrefs are included in
>: overview.fmt (whatever), will tin be able to do that instead of using XHDR?
>You have hit the nail on the head.  I can't test my xover parser code 
>for xref's because there are'nt any.  I guess I will just have to wait
>until my INN feed turns on xref generation before adding it to tin.

I already have Xref:full in my overview.fmt since it speeds up trn3 as well.
If I decided to add another header (which I'll get onto later), do I need
to restart overchan?  Do I need to rebuild the entire database?  Or will
it gradually migrate to the new requirements, without upsetting itself,
or any newsreaders?

The reason I'd like to do this is that inpaths is starting to take a long time
with the amount of news we have around.  I was think of experimenting with
putting Path:full in overview.fmt, and letting inpaths grab and use that
instead of having to open every single article after a trawl through the
history file.  Quite a few peoples killfiles are based on the Path: header,
so it should speed those up too.

Any comments?

Cheers,
-- 
\/ato - Ian Dickinson - NIC handle: ID17          This article is dedicated to
vato@csv.warwick.ac.uk  ...!uknet!warwick!vato        those who disapprove but
/I=I/S=Dickinson/OU=CSV/O=Warwick/PRMD=UK.AC/ADMD= /C=GB/          continue to
@c=GB@o=University of Warwick@ou=Computing Services@cn=Ian Dickinson      read
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#1992
Author: Rob Robertson
Date: Wed, 30 Jun 1993 08:16
42 lines
2775 bytes
In article <20rt5e$8kp@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes:

   I already have Xref:full in my overview.fmt since it speeds up trn3 as well.
   If I decided to add another header (which I'll get onto later), do I need
   to restart overchan?  Do I need to rebuild the entire database?  Or will
   it gradually migrate to the new requirements, without upsetting itself,
   or any newsreaders?

you need to re-read the overview.fmt file a 'ctlinnd reload
overview.fmt' should do it.  the new data will just trickle into the
database.  after the conversion, you can configure your newsreaders to
use the new header via the overview database.

the problem is that your newsreaders can't depend on the data, until
the conversion is complete

i'd do it all at once:

	ctlinnd reload overview.fmt
	find /var/spool/news . -name .overview -print | xargs rm -f
	expireover -a

   The reason I'd like to do this is that inpaths is starting to take a long time
   with the amount of news we have around.  I was think of experimenting with
   putting Path:full in overview.fmt, and letting inpaths grab and use that
   instead of having to open every single article after a trawl through the
   history file.  Quite a few peoples killfiles are based on the Path: header,
   so it should speed those up too.

if it's primarily for inpaths, i wouldn't do it.  your going to be
increasing the size of your overview database substatially, plus
toting all that stuff around.

i'd either leave inpaths the way it iz.  or do a header feed to a
script which grep's out the Path: line.

rob
--
			  william robertson
			rob@agate.berkeley.edu

		"indecision is the key to flexibility"
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#1998
Author: Rich Salz
Date: Wed, 30 Jun 1993 15:14
13 lines
1657 bytes
In <20rt5e$8kp@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes:
>If I decided to add another header (which I'll get onto later), do I need
>to restart overchan?  Do I need to rebuild the entire database?  Or will
>it gradually migrate to the new requirements, without upsetting itself,
>or any newsreaders?

If you change overview.fmt you definitely need to ctlinnd reload it and
to restart overchan.  Do you need to rebuild the entire database? That
depends.  You should not need to do this, since adding "full" headers
are self-describing, and clients should be graceful if they don't see
all full header in all entries.  At least trn3, however, gets very upset
if you claim to have "Xref:full" and sometimes don't.
	/r$
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#1999
Author: Rob Robertson
Date: Wed, 30 Jun 1993 17:46
22 lines
2032 bytes
In article <C9GKzI.3y9@borland.com> davison@borland.com (Wayne Davison) writes:

   I'm fairly certain that in C news' implementation if there is no Xref
   line in the article there is nothing put into the "others" field of the
   overview file.  If INN differs here we should get the two packages to
   do the same thing.  I believe that INN doesn't really have the concept
   of the catch-all field that C news does -- it has a fixed number of
   fields that are always present, some of which have the preceding header
   "id" present.  C news has a fixed number of fields without ids that are
   always present and a catch-all field that may contain any number of other
   fields preceded by their ids.

your right.  it's been a bug in the INN implementation that i've known
about since day one, but haven't gotten around to fix.  i'll try to
have patches in rich's mail box tomorrow for INN 1.5.

rob
--
			  william robertson
			rob@agate.berkeley.edu

		"indecision is the key to flexibility"
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#2000
Author: Wayne Davison
Date: Wed, 30 Jun 1993 17:52
24 lines
2268 bytes
According to Rich Salz <rsalz@rodan.UU.NET>:
> At least trn3, however, gets very upset
> if you claim to have "Xref:full" and sometimes don't.

It doesn't get upset, it just gets mislead.  There is no negative indication
for the presence an xref header (i.e. "no xrefs in the overview file" looks
exactly the same as "no xrefs for the current article").  Because of this
trn doesn't know if your news database has xrefs in the overview file until
it happens to run across one in the "others" field of some group (which can
take quite some time, depending on the group).  Once it finds one it simply
assumes that all the other articles don't have xrefs.  Thus, an overview file
that is partially-converted to having xrefs is deceiving.

This ambiguity could be eliminated by always including the header even
when it is empty, but I don't think it'd really be worth the extra space.

Perhaps what we really need is an overview header file in the root of the
news database that indicates what fields are present in what order.  NNTP
would have to be modified to send this file but at least we could then
know for sure exactly what data we can expect from the overview file
(and in the case of a new field you wouldn't turn on its presence until
it had propagated enough into the database to be useful).

.wayne..
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#2001
Author: Rich Salz
Date: Wed, 30 Jun 1993 19:23
14 lines
1576 bytes
In <C9G4BD.JCw@borland.com> davison@borland.com (Wayne Davison) writes:
>This ambiguity could be eliminated by always including the header even
>when it is empty, but I don't think it'd really be worth the extra space.

Yes, the header is always included, even when it is empty.  This does
not, however, fix the situation of old data not having the header.

>Perhaps what we really need is an overview header file in the root of the
>news database that indicates what fields are present in what order.  NNTP
>would have to be modified to send this file

INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt
file.  I would like to see this added to the NNTP reference implementation.
	/r$
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#2003
Author: Wolfgang Rupprecht
Date: Wed, 30 Jun 1993 23:07
24 lines
2187 bytes
cudep@csv.warwick.ac.uk (Ian Dickinson) writes:
>The reason I'd like to do this is that inpaths is starting to take a long time
>with the amount of news we have around.  I was think of experimenting with
>putting Path:full in overview.fmt, and letting inpaths grab and use that
>instead of having to open every single article after a trawl through the
>history file.  Quite a few peoples killfiles are based on the Path: header,
>so it should speed those up too.

You can also just run an inpath-like program as an INN channel. That
way you don't have to store all the path lines in your overview
database, you can process the Path lines and discard them.

I already have several procs that run on a header or overview stream
that snarf various bits of info.

Perhaps it would be good to hack an extension to INN that would cause
only selected header lines to be sent out of a channel.  That would
save quite a bit of cpu time over sending out the whole header and
then filtering it do death just to extract one line.

-wolfgang

-- 
Wolfgang Rupprecht <wolfgang@wsrcc.com> 39469 Gallaudet Dr., Fremont CA 94538
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
#2004
Author: Wayne Davison
Date: Wed, 30 Jun 1993 23:52
33 lines
2587 bytes
According to Rich Salz <rsalz@rodan.UU.NET>:
> Yes, the header is always included, even when it is empty.

I'm fairly certain that in C news' implementation if there is no Xref
line in the article there is nothing put into the "others" field of the
overview file.  If INN differs here we should get the two packages to
do the same thing.  I believe that INN doesn't really have the concept
of the catch-all field that C news does -- it has a fixed number of
fields that are always present, some of which have the preceding header
"id" present.  C news has a fixed number of fields without ids that are
always present and a catch-all field that may contain any number of other
fields preceded by their ids.

> This does not, however, fix the situation of old data not having the
> header.

Sure it does.  Instead of having three possible conditions mapped into two
discernable states we now have three states: (1) xref header may or may not
exist -- look for it (no Xref: in others); (2) xref is known to NOT exist
(empty Xref: line in others); (3) xref exists (Xref: line with contents).

> INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt
> file.  I would like to see this added to the NNTP reference implementation.

I'd go with that.  It would require the addition of an overview.fmt file
on a C news system which wouldn't actually affect the overview contents,
but that shouldn't be a problem.  I'd much rather see a fixed list of
overview fields, none of which have a preceding id described by a file
such as overview.fmt than what we have right now (though, of course, I
have to support the current system as the default if no overview.fmt file
is found).

.wayne..
INN LIST/XPATH commands (Was: "Re: Changing contents of NOV databases")
#2022
Author: Greg Earle
Date: Sat, 03 Jul 1993 23:17
54 lines
2941 bytes
In article <20sp7dINNh0r@rodan.uu.net> rsalz@rodan.UU.NET (Rich Salz) writes:
>In <C9G4BD.JCw@borland.com> davison@borland.com (Wayne Davison) writes:
>>Perhaps what we really need is an overview header file in the root of the
>>news database that indicates what fields are present in what order.  NNTP
>>would have to be modified to send this file
>
>INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt
>file.  I would like to see this added to the NNTP reference implementation.

Rich,
	Just noticed the following trivia: the HELP message for nnrpd says

HELP
100 Legal commands
..
  list [active|newsgroups|distributions|schema]
..
  mode reader
..
  xpath xpath MessageID
..

(1) "overview.fmt" is not listed in the help text for "LIST"

(2) Is "mode reader" a useful command for nnrpd?  (-:

    Adjunct note: the HELP message for "innd" mentions "mode" but does not
    mention that an argument is necessary; in fact, the HELP message for innd
    doesn't mention any required/optional parameters, unlike the HELP message
    for nnrpd (which is very useful, btw)

(3) "xpath xpath MessageID" is a Dept. of Redundancy Dept. (-:

    Also, when feeding "XPATH" to nnrpd, the "MessageID" needs to be delimited
    with "<" and ">" (not mentioned in the help text), yet these delimiters
    are not required/needed when using the "grephistory" command:

isolar:2:71 % /usr/local/news/bin/grephistory davel.740941258@cisco.com
/usr/spool/news/news/software/b/1144

200 isolar InterNetNews NNRP server INN 1.4 20-Mar-93 ready (posting ok).
XPATH davel.740941258@cisco.com
430 Don't have it

XPATH <davel.740941258@cisco.com>
223 news/software/b/1144

    Questions about orthogonality are left as an exercise for the author (-:

-- 
	- Greg Earle
	  Phone: (818) 353-8695		FAX: (818) 353-1877
	  Internet: earle@isolar.Tujunga.CA.US
	  UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads