πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88306

Re: Wrong output for GROUP/LISTGROUP commands

#88306
From: Aioe
Date: Thu, 02 Apr 2020 11:33
51 lines
3487 bytes
Il Thu, 02 Apr 2020 00:13:09 +0200, Julien Γ‰LIE ha scritto:


> - add an inn.conf parameter like groupexactcount (defaulting to 50)
> - if the estimated count known by nnrpd when responding to GROUP or
> LISTGROUP commands is inferior or equal to groupexactcount, then nnrpd
> really counts the exact number of articles still present in the
> newsgroup, and gives that number - if groupexactcount is set to 0, then
> nnrpd will always give the estimated number (current behaviour)


Since I am forced to stay at home because of the epidemic, I spent this 
morning doing some tests.
The most common newsreaders do *not* seem to have troubles if the number 
of messages actually available in a group differs greatly from the value 
returned by group and listgroup. I have tried Pan and slrn (linux), 
Thunderbird (Linux and windows), Claws (linux and windows), Mesnews 
(windows) and none of them seem to have problems even if the difference 
between the output of GROUP and the real value is about thousands of 
messages. This makes the feature you propose useless apart from very 
specific cases. Since calculating the exact number of messages slows down 
nnrpd, perhaps it would be a better choice to insert that flag into the 
access structure in the reader.conf file. In this way, in the few cases 
where this feature is needed, it can only be activated for instances of 
nnrpd which serve scripts that need to know the exact value of articles 
available in a group.

> - if you want nnrpd to always give the exact count, then set
> groupexactcount to the maximum possible article number currently handled
> by nnrpd (2147483647)

this seems acceptable even if perhaps a more elegant solution would be 
better (example: groupexactcount "none", "always" or a number 
representing the maximum value of messages beyond which nnrpd provides an 
estimation)


> 
> When giving the exact count, should exact low watermarks and high
> watermarks also be given?  (or you don't mind if they do not correspond
> to existing articles)

no, as long as all the messages available on the server are numbered 
between the low watermark and the high watermark, it is not necessary 
that the low watermark value represents the oldest available message and 
the high watermark the most recent. It would be a good feature but only 
if it doesn't slow down the server significantly. 
 
> Should the result of LIST COUNTS also use that rule for counting?

yes, of course
Technical Details
Message-ID: <r64ihl$1ns$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <r5se8o$ufl$1@gioia.aioe.org> <r5tbff$niq$1@news.trigofacile.com> <r5tkqe$633$4@gioia.aioe.org> <r5tomm$9sm$1@news.trigofacile.com> <r5v1oe$4s9$1@gioia.aioe.org> <r633lq$155$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <r64ihl$1ns$1@gioia.aioe.org>
Subject: Re: Wrong output for GROUP/LISTGROUP commands
Date: Thu, 02 Apr 2020 11:33:09 +0000
From: Aioe <estasi@aioe.org>
References: <r5se8o$ufl$1@gioia.aioe.org> <r5tbff$niq$1@news.trigofacile.com> <r5tkqe$633$4@gioia.aioe.org> <r5tomm$9sm$1@news.trigofacile.com> <r5v1oe$4s9$1@gioia.aioe.org> <r633lq$155$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Aioe.org NNTP Server
Lines: 51
Nntp-Posting-Host: qNC+fCs0FGgvSxGd33sedg.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
X-Notice: Filtered by postfilter v. 0.9.2