🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89842

Re: MAXARTNUM extension

#89842
From: Franck
Date: Tue, 13 Dec 2022 06:21
96 lines
4130 bytes
Salut Julien,

> Your formula is OK. 

Call it F1


> 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))

Call it F2

> 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.


I've tested with theses 9 articles :

2147483646 <DQoDAeVAbws@dev.spitfire-nntp.fr>
2147483647 <DpJxkOqyBtc@dev.spitfire-nntp.fr>
2147483648 <D3yPBiC8r2A@dev.spitfire-nntp.fr>
4294967296 <DwE867tDRCo@dev.spitfire-nntp.fr>
5294967297 <CK3CrU31vF8@dev.spitfire-nntp.fr>
5294967298 <ApEvQzsxg8U@dev.spitfire-nntp.fr>
5294967299 <BqU18UDdrM0@dev.spitfire-nntp.fr>
5294967300 <BKoHnx3doC8@dev.spitfire-nntp.fr>
5294967301 <A18hkgS5YbI@dev.spitfire-nntp.fr>


LIST COUNTS (Best result is 2)
F1: local.test.maxartnum 2147483647 2147483646 2 y
F2: local.test.maxartnum 2147483647 2147483646 1 y

MAXARTNUM 4294967295
LIST COUNTS (Best result is 3)
F1: local.test.maxartnum 4294967295 2147483646 9 y
F2: local.test.maxartnum 4294967295 2147483646 7 y


MAXARTNUM 4294967296
LIST COUNTS (Best result is 4)
F1: local.test.maxartnum 4294967296 2147483646 9 y
F2: local.test.maxartnum 4294967296 2147483646 7 y


MAXARTNUM 5294967296
LIST COUNTS (Best result is 4)
F1: local.test.maxartnum 5294967296 2147483646 9 y
F2: local.test.maxartnum 5294967296 2147483646 9 y

MAXARTNUM 5294967297
LIST COUNTS (Best result is 5)
F1: local.test.maxartnum 5294967297 2147483646 9 y
F2: local.test.maxartnum 5294967297 2147483646 9 y

So, it seems F2 is a better choice except in the case F2 < F1.
I added this condition.

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

Done.

>> Article number set to "0", all newsgroup > MAXARTNUM are set to 0 
> OK that's fine.

As the exact form of an <article-locator> is implementation-specific, 
does it make more sense to set this value to MAXARTNUM?

Xref: dev.spitfire-nntp.fr local.test.maxartnum:MAXARTNUM

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

You bet it right.

> It would then propose "MAXARTNUM 0" to indicate that.

Done.

> 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).

Done but to be sure :

C: MAXARTNUM 0
S: 202 18446744073709551616 is our mutual maximum article number. <= The 
maximum the server can handle.

?

Franck
Technical Details
Message-ID: <A+JThm7d54c@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
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <tn88mm$2pnad$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <A+JThm7d54c@news.spitfire-nntp.fr>
Subject: Re: MAXARTNUM extension
Date: Tue, 13 Dec 2022 07:21:45 +0100
From: Franck <franck@email.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <B6X9nw7kgEM@news.spitfire-nntp.fr> <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
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1
Newsgroups: news.software.nntp
Content-Language: fr
In-Reply-To: <tn88mm$2pnad$1@news.trigofacile.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 13 Dec 2022 06:21:45 +0000 (UTC)
Injection-Info: news.spitfire-nntp.fr; posting-host="-a3y0gOB7siupGFT9TssDLornYLFofqmzLS3p1mCy_IT_4WJRibUFo-BgvRMUKRdcYaUc9NtXw5nhqAQiyPrSg=="; posting-account="g3rZE__tJaMZdTRZKx6TkSTJXUeBiE3OCU8ZgDOt1Fg="; logging-data="C639819f91289d4b4"; mail-complaints-to="abuse@spitfire-nntp.fr"
Cancel-Lock: sha1:/FpRK/1Qok5SdNNumGTLEnCIF7g= sha256:KQWqDlJ0QP+1iyaWOzgjsP875u2UzKjv8mctXBKLpLw= sha1:jqazP70BvvkLaER2KEV2hXcOzos= sha256:JPTy1jFRiEtL9tPEptxy3nj8UZI9sDu8dxotaR0lmXY=
Organization: Home of Spitfire News Server, Montpellier (France).