🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39187

Re: NNTP protocol question

#39187
From: Russ Allbery
Date: Sun, 15 Aug 1999 00:00
81 lines
4494 bytes
In news.software.nntp, Ade Lovett <ade@supernews.com> writes:
> On 14 Aug 1999 20:16:57 -0700, Russ Allbery <rra@stanford.edu> wrote:

>> NEWNEWS is an optional feature in RFC 977

> Wrong.

Hurm.  You're right.  That's weird... I could have sworn I'd even read the
text that made it optional at some point.  I must have been completely
imagining things.

>> and the type of data storage required to implement it efficiently isn't
>> the type of storage used by most news servers

> Wrong again.  This is absolutely nothing to do with the type of data
> storage, just the apparent inability of (most) news server authors to
> take a tiny step back from the problem, look at what is actually
> required to implement the NEWNEWS command and make another tiny step to
> actually implement it.

No, I'm sorry, but I'm not wrong here.  To implement NEWNEWS efficiently,
while still properly dealing with crossposting and the full syntax of the
command (which allows specification of distribution restrictions) requires
a data storage that is not present on most news servers.  Doing the
distribution part in particular is difficult because Distribution is not
in the overview database; you'd need to stash it somewhere since opening
every article to check the Distribution header is clearly not what you
want to do.

If you put that aside, it depends on how useful an implementation you
want.  RFC 977 says:

   A list of message-ids of articles posted or received to the specified
   newsgroup since "date" will be listed.

so you're allowed to do it by posting time, which is of course easier
because it's in the overview data.  However, that's of really questionable
utility, since it breaks the semantic of "give me all news arrived since
the last time I checked."  You want to do it by arrival time, which of
course is also not in the overview file by default.

So even not worrying about Distribution, you're stuck looking at both the
overview *and* some other data structure (usually the history equivalent)
that has the arrival times.  Under some implementations, you can pull it
all out of history, but that requires searching through a bunch of lines
for newsgroups that aren't part of the query, since the history database
generally isn't per-newsgroup.

> It really isn't rocket science.  Honestly.

I didn't say it was rocket science.  It's fairly straightforward to figure
out what data structures one would need, and one could even leverage off
overview if one's clients wouldn't get confused by the extra entries.  But
it does require storing additional information that isn't cached by
default.

> Indeed they do.  Something of a shame, really, since the global (or near
> global) implementation of this command would make multi-server
> newsreaders a whole lot easier to implement.

Provided you're willing to settle for slop around the edges, given that
articles don't arrive at different servers at the same time.

> In fact, taking things to their logical conclusion, if it were
> implemented across-the-board, becoming the preferred method of article
> retrieval (do a NEWNEWS on the groups you're interested in, followed by
> a bunch of HEAD <id>, and later on, BODY <id> after local filters have
> done their work),

That would be massively slower than the current overview-driven method in
any news server implementation I can picture.  Maybe I'm wrong, but I'd
need some convincing.  HEAD requires opening the article.

> By all means berate NEWNEWS.. just do it for the right reasons.

I wasn't berating it.  I was answering the gentleman's question.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <yllnbc7cxs.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!not-for-mail
References: <7oqj34$j662@bbs2.pnl.gov> <rr1rfe3rkrl72@news.supernews.com> <37B2C58D.4569C005@pc.grm.hia.no> <eZft3.857$5H1.4753@news2.randori.com> <ylhfm1g2c6.fsf@windlord.stanford.edu> <slrn7rek6s.ajq.ade@localhost.lovett.com>

Show Full Headers
Complete Article Headers
Message-ID: <yllnbc7cxs.fsf@windlord.stanford.edu>
Subject: Re: NNTP protocol question
Date: Sun, 15 Aug 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7oqj34$j662@bbs2.pnl.gov> <rr1rfe3rkrl72@news.supernews.com> <37B2C58D.4569C005@pc.grm.hia.no> <eZft3.857$5H1.4753@news2.randori.com> <ylhfm1g2c6.fsf@windlord.stanford.edu> <slrn7rek6s.ajq.ade@localhost.lovett.com>
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: 513194142
Organization: The Eyrie
Newsgroups: news.software.nntp,news.software.readers