🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.b
Article #2351

Re: Cnews artnum in active file

#2351
From: Brian Kantor
Date: Fri, 17 Aug 1990 18:45
48 lines
2422 bytes
In article <SS^%M2&@rpi.edu> tale@turing.cs.rpi.edu (David C Lawrence) writes:
>... I think I will review the
>latest NNTP protocol for a way to put in "this group has n articles in
>it" information in it after a readdir and check for S_IFREG files.

Uh, that's already there, dude.  Chapter and verse:

RFC 977                                                    February 1986
Network News Transfer Protocol

3.2.  The GROUP command

3.2.1.  GROUP

   GROUP ggg

   The required parameter ggg is the name of the newsgroup to be
   selected (e.g. "net.news").  A list of valid newsgroups may be
   obtained from the LIST command.

   The successful selection response will return the article numbers of
   the first and last articles in the group, and an estimate of the
   number of articles on file in the group.  It is not necessary that
   the estimate be correct, although that is helpful; it must only be
   equal to or larger than the actual number of articles on file.  (Some
   implementations will actually count the number of articles on file.
   Others will just subtract first article number from last to get an
   estimate.)

   When a valid group is selected by means of this command, the
   internally maintained "current article pointer" is set to the first
   article in the group.  If an invalid group is specified, the
   previously selected group and article remain selected.  If an empty
   newsgroup is selected, the "current article pointer" is in an
   indeterminate state and should not be used.

   Note that the name of the newsgroup is not case-dependent.  It must
   otherwise match a newsgroup obtained from the LIST command or an
   error will result.

3.2.2.  Responses

   211 n f l s group selected
           (n = estimated number of articles in group,
           f = first article number in the group,
           l = last article number in the group,
           s = name of the group.)
   411 no such news group
Technical Details
Message-ID: <17534@ucsd.Edu>
Path: arc1-ca.pugleaf.net!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!brian
References: <1990Aug17.034849.17801@zoo.toronto.edu> <SS^%M2&@rpi.edu> <1990Aug17.163627.2140@zoo.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utstat!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!brian
From: brian@ucsd.Edu (Brian Kantor)
Newsgroups: news.software.b
Subject: Re: Cnews artnum in active file
Message-ID: <17534@ucsd.Edu>
Date: 17 Aug 90 18:45:06 GMT
References: <1990Aug17.034849.17801@zoo.toronto.edu> <SS^%M2&@rpi.edu> <1990Aug17.163627.2140@zoo.toronto.edu>
Organization: The Avant-Garde of the Now, Ltd.
Lines: 48