Article View: news.software.nntp
Article #52058Re: Groups with no current articles
From: Jeffrey M. Vinocur
Date: Thu, 26 Apr 2001 21:46
Date: Thu, 26 Apr 2001 21:46
37 lines
2483 bytes
2483 bytes
In article <260420011737480833%planb@newsreaders.com>,
J.B. Moreno <planb@newsreaders.com> wrote:
>In article <9c9h98$l81$1@panther.uwo.ca>, Josef Drexler
><nospam0401@josefsbox.cjb.net> wrote:
>
>> The NNTP reference implementation apparently looks at the spool
>> directory and finds out what the highest and lowest article are, and
>> how many there are. This would return low=high=count=0 too. I'm not
>> sure what INN does exactly, but it must be something similar.
>
>I'm not familiar with the innards of INN either, hopefully someone that
>is will pipe up.
Here's the bit of code from nnrpd/group.c in INN, where
NNTP_GROUPOK_VAL is a constant for the status code (211):
if (count == 0)
Reply("%d 0 0 0 %s\r\n", NNTP_GROUPOK_VAL, group);
else
Reply("%d %d %ld %ld %s\r\n",
NNTP_GROUPOK_VAL,
count, ARTlow, ARThigh, group);
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...
For whoever wanted to patch INN, it would be trivial (delete the
first three lines above and recompile nnrpd) --- but I wonder if
any software depends on that behavior.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<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!lnsnews.lns.cornell.edu!news.litech.org!not-for-mailReferences:
<MPG.153fe6fda6c3e2149896d5@netnews.worldnet.att.net> <1esffea.18b1u6517ypquaN%planb@newsreaders.com> <9c9h98$l81$1@panther.uwo.ca> <260420011737480833%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <9ca4vt$7d4$1@marduk.litech.org> Subject: Re: Groups with no current articles Date: Thu, 26 Apr 2001 21:46:37 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <MPG.153fe6fda6c3e2149896d5@netnews.worldnet.att.net> <1esffea.18b1u6517ypquaN%planb@newsreaders.com> <9c9h98$l81$1@panther.uwo.ca> <260420011737480833%planb@newsreaders.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!newsfeed.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp,news.software.readers Organization: Lithium Technologies Lines: 36 Sender: jeff@litech.org NNTP-Posting-Host: marduk.litech.org X-Trace: marduk.litech.org 988321597 7588 128.84.154.54 (26 Apr 2001 21:46:37 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Thu, 26 Apr 2001 21:46:37 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)