🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Alan Barrett Sun, 08 Aug 1993 08:32
Using NNRP for something like "nngrab"
#2071
Author: Alan Barrett
Date: Sun, 08 Aug 1993 08:32
58 lines
3878 bytes
[I added news.software.nntp to the Newsgroups line]

In article <emv.2.00155066@mail.msen.com>,
emv@mail.msen.com (Edward Vielmetti) writes:
> In article <CBD6C9.967@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
>>         nngrab 'time.*zone'
>> and in two or three seconds I'll get a screen that lists all eight
>> articles in our 110-megabyte news spool whose subject lines contain the
>> regular expression 'time.*zone'.  I haven't run into another news
>> reader that searches subjects so quickly.
> Yes, this is a really nice feature.  So nice, in fact, that it would be
> nice to have that part of the news system pulled back into the NNTP or
> NNRP news reader protocol, so that other news readers could get back to
> the same database.

I agree that it would be great to have other newsreaders capable of
searching like that.  But I am not sure that it needs another protocol
extension.  Using XOVER, the client do something like this:

    get list of active groups
    for each active group that matches restrictions imposed by the user
    do
        get the NOV data for this group
        add interesting articles to an internal list
    done
    give user a menu of the interesting stuff

With the above scheme, the entire NOV database has to be sent over the
wire, which could be a performance problem (NOV databases can add up to
several Megabytes).  However, when nn uses an NFS-mounted nnmaster or
nnspew database, most of that database has to be sent over the wire for
nngrab to use, which would presumably also give rise to performance
problems, though they would probably not be as severe, due to NFS
cacheing on both the client and server sides, and due to the smaller
size of the nnspew database.

If only one header field is of interest, then XHDR could be used
instead of XOVER, which would reduce the network load significantly,
but perhaps not sufficiently.

An NNRP protocol extension could move the entire load from the client
to the server and drastically reduce the amount of data sent over the
wire, but it would be difficult to specify a suitably rich protocol
that would not unduly limit the operations the client could perform.

Perhaps there is a middle ground:  A small extension to XOVER and/or
XHDR that would move the regexp matching to the server, but leave the
client with the responsibility for looping over all desired groups.
This still has the problem of specifying a suitably rich regexp
language as part of the protocol, but perhaps that could be
side-stepped by specifying a simple regexp language to be implemented
on the server side -- something like file-globbing, a la wildmat, might
be good enough -- and having the client post-filter the results if it
wants to provide a richer regexp language to the user.

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za
Re: Using NNRP for something like "nngrab"
#2072
Author: Alan Barrett
Date: Sun, 08 Aug 1993 11:14
24 lines
2081 bytes
In article <242dn3$ce6@lucy.ee.und.ac.za>,
barrett@lucy.ee.und.ac.za (Alan Barrett) writes:
> Perhaps there is a middle ground:  A small extension to XOVER and/or
> XHDR that would move the regexp matching to the server, but leave the
> client with the responsibility for looping over all desired groups.
> This still has the problem of specifying a suitably rich regexp
> language as part of the protocol, but perhaps that could be
> side-stepped by specifying a simple regexp language to be implemented
> on the server side -- something like file-globbing, a la wildmat, might
> be good enough -- and having the client post-filter the results if it
> wants to provide a richer regexp language to the user.

I forgot that the XPAT command in INN's nnrpd already does this.
The client says

    XPAT name-of-header id-or-range pattern-to-match

and the server returns a list of those articles within the specified
range in which the specified header matches the pattern (using
wildmat).

--apb
Alan Barrett, Dept. of Electronic Eng., Univ. of Natal, Durban, South Africa
RFC822: barrett@ee.und.ac.za
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