🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #52060

Re: Groups with no current articles

#52060
From: those who know me have no need o...
Date: Fri, 27 Apr 2001 10:13
31 lines
1952 bytes
<9ca4vt$7d4$1@marduk.litech.org> divulged:

>That is, it purposefully special-cases for empty groups and
>returns 0 0 0 instead of N N 0.  I don't know why, however.  I'd
>be curious if anyone has source for nnrpd from long ago...

isc has them all.

nnrpd.c version 1.0:

        if (ARTsize == 0)
            Reply("%d 0 0 0 %s\r\n", NNTP_GROUPOK_VAL, group);
        else
            Reply("%d %d %d %d %s\r\n",
                NNTP_GROUPOK_VAL,
                ARTsize, ARTnumbers[0], ARTnumbers[ARTsize - 1], group);

reference nntp (1.5.12.1) [trimmed somewhat]:

        num_arts = scan_dir(low_msg, high_msg);
/* [...] */
        printf("%d %d %d %d %s\r\n",
                OK_GROUP,
                num_arts,
                (num_arts > 0 ? art_array[0] : 0),
                (num_arts > 0 ? art_array[num_arts-1] : 0),
                argv[1]);

-- 
okay, have a sig then
Technical Details
Message-ID: <m1sniubqgk.fsf@usa.net>
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!newsfeed.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3
References: <MPG.153fe6fda6c3e2149896d5@netnews.worldnet.att.net> <1esffea.18b1u6517ypquaN%planb@newsreaders.com> <9c9h98$l81$1@panther.uwo.ca> <260420011737480833%planb@newsreaders.com> <9ca4vt$7d4$1@marduk.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <m1sniubqgk.fsf@usa.net>
Subject: Re: Groups with no current articles
Date: Fri, 27 Apr 2001 10:13:31 +0000
From: those who know me have no need of my name <not-a-real-address@usa.net>
References: <MPG.153fe6fda6c3e2149896d5@netnews.worldnet.att.net> <1esffea.18b1u6517ypquaN%planb@newsreaders.com> <9c9h98$l81$1@panther.uwo.ca> <260420011737480833%planb@newsreaders.com> <9ca4vt$7d4$1@marduk.litech.org>
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!newsfeed.google.com!newsfeed.stanford.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews3
Newsgroups: news.software.nntp,news.software.readers
Organization: earthfriends
Lines: 30
NNTP-Posting-Host: p-751.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.1 (Bryce Canyon)