🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89839

Re: MAXARTNUM extension

#89839
From: Julien ÉLIE
Date: Mon, 12 Dec 2022 22:07
84 lines
4179 bytes
Salut Franck,

> Estimate number is always real number of articles if all articles 
> numbers are < MAXARTNUM.
> If not, it's (MAXARTNUM-First)+1, except if the result is > real count 
> number.

It is fine not to give the real count.
Your formula is OK.  If I have to suggest an "improvement", instead of 
the maximum (MAXARTNUM-First+1) it could be a ratio of it as you have 
the real count on the whole group:
ceil((MAXARTNUM-First+1)*(Real count)/(High-First+1))

In your example, it would give 1 article because standard deviation is 
high (3 articles near 2^31 and 1 near 2^32) but I believe it would work 
better in real life.


> C: STAT <DwE867tDRCo@dev.spitfire-nntp.fr>
> S: 223 0 <DwE867tDRCo@dev.spitfire-nntp.fr> article exist.

exists


> Article number set to "0", all newsgroup > MAXARTNUM are set to 0

OK that's fine.


> C: OVER 1-
> S: 224 overview information follows:
> S: 2147483646    Inside ^31    Franck <my@mail.is.invalid>    Fri, 9 Dec 
> 2022 06:08:46 +0100    <DQoDAeVAbws@dev.spitfire-nntp.fr>    1084    
> 1    Xref: dev.spitfire-nntp.fr local.test.maxartnum:2147483646
> S: 2147483647    Re: Inside ^31    Franck <my@mail.is.invalid>    Fri, 9 
> Dec 2022 06:09:30 +0100    <DpJxkOqyBtc@dev.spitfire-nntp.fr> 
> <DQoDAeVAbws@dev.spitfire-nntp.fr>    12504
> S:.

I bet it's a copy/paste error (otherwise overview data for the second 
article is not complete).


> C: NEXT
> S: 223 2147483647 <DpJxkOqyBtc@dev.spitfire-nntp.fr> article selected.
> C: NEXT
> S: 401 MAXARTNUM

Yes, 401 because there really is an article.  Otherwise, it would have 
been 421 (no next article).


> C: NEXT
> S: 502 next article has a number higher than our mutual maximum.

OK with 502 because the client needs terminating the connection and 
starting another one with a different capability in order to access the 
next (existing) article.


> C: MAXARTNUM
> S: 202 18446744073709551616 is our mutual maximum article number.

I know that I suggested MAXARTNUM without any argument to say that the 
client handles arbitrary numbers.
On second thoughts, there would be a problem with the ABNF syntax and 
parsing of the 202 answer.
202 is followed with a mandatory number and an optional comment.  We 
cannot say that 202 is followed with an optional number and an optional 
comment (otherwise it would be impossible to distinguish the result if 
the comment is a number!).

It would then propose "MAXARTNUM 0" to indicate that.
And naturally, the argument 0 would not be a syntax error (contrary to 
other numbers < 2^31-1).  And not giving an argument would then be a 
syntax error (501 response code).


Apart from these minor nits, all your NNTP session looks fine.

-- 
Julien ÉLIE

« Et s'il n'en reste qu'un, je serai celui-là ! » (Victor Hugo)
Technical Details
Message-ID: <tn88mm$2pnad$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
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tn88mm$2pnad$1@news.trigofacile.com>
Subject: Re: MAXARTNUM extension
Date: Mon, 12 Dec 2022 23:07:18 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr>
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: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 12 Dec 2022 22:07:18 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="2940237"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Cancel-Lock: sha1:Ha+nJ9Tq56TznsLx2p2Ks+Kgsnc= sha256:8YMJnbTrL5jZqKFHXS1OZA7enK1Xi8HUFQgSd6gvzxg= sha1:og6ub1/iyPNX2zj4ZhskXB9RsHE= sha256:2f9TlpbyNVIgZ8Ffm6hG78F8NQCg9CYO+t4xQbQh9+k=
In-Reply-To: <B6X9nw7kgEM@news.spitfire-nntp.fr>