🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89817

Re: MAXARTNUM extension

#89817
From: Julien ÉLIE
Date: Sun, 11 Dec 2022 10:23
80 lines
4317 bytes
Salut Franck,

>> I would only return 501 if there is more than 2 arguments or, when an 
>> argument is given, this argument is below 2^31-1 or is not a number or 
>> is not "^" followed with a number.
> 
> Hum, is there a reason to do :
> 
> C: MAXARTNUM ^100
> S: 202 (2^63-1) <-- the mutual maximum negotiated
> 
> and not :
> 
> C: MAXARTNUM ^1
> S: 202 (2^31-1) <-- the mutual minimum negociated

The only point I see in not sending a syntax error (501) to MAXARTNUM 
with an article number below 2^31-1 is that there was no negotiation. 
The client says it can handle article numbers up to 1, and the server 
answers OK let's go up to 2^31-1.  That seems weird.
Look for instance at how TLS clients and servers negotiate the cipher or 
protocol version to use.  If a client wants TLS 1.0 and the server only 
offers 1.2 and above, it won't answer OK let's do 1.2.
Or if a client sends "LIST ACTIVE news.*" and the server answers OK I'll 
send you the active list of news.* and also of comp.* :-)



> Again, I don't see the point to set a value other than the maximum value 
> of an int type

Because you don't actually know what is the value of an "int type" on a 
given architecture.
For instance, in the C standard, a long long is guaranteed to be *at 
least* 64 bits.  It means that you could end up having implementations 
which accept 2^128-1.  Why restrict them by sending a syntax error if 
the number is greater than 2^64-1?

Also, we don't know which types will exist in 10 years.  People may 
wonder why we restricted numbers to 64 bits!
Remember the first sentence in Clive's mail :-)

    Firstly, let us learn from the past and *not* call this - or make
    it - a "64 bit" facility.



>>> - Articles > ^31 can be retrieved with their <Message-ID>. In this 
>>> case, article number is set to "0" and ALL newsgroups in Xref header 
>>> with a value > 2^31 are "on-the-fly" set to 0. Size of article is 
>>> also adjusted "on-the-fly".
>>
>> Is it really necessary to change the numbers in Xref header fields?
> 
> It is not "necessary" but, I mean, if artcile number is set to "0", why 
> not to do the same in Xref?
> 
> I know it's a bit of coding but, why not?

You can; the value of the article locator is implementation-specific.
You MAY set the article to "0" or remove the whole Xref header field if 
you want, but are not required to.



>> So I would just keep Xref untouched when sending it in overview data 
>> or in header fields.
> 
> For overview data (OVER/HDR), Xref is not concerned because you can't go 
> outside the [range] (first-MAXARTNUM), so Xref is untouched.

OVER and HDR both accept either an article number (or a range) or a 
Message-ID.  If Spitfire does not implement OVER <mid> then there's 
indeed nothing to do for that command.  Otherwise, you MAY do something.

-- 
Julien ÉLIE

« Bonjour ! Je m'appelle Bill Portes et mon boulot, c'est de vendre des
   fenêtres. »
Technical Details
Message-ID: <tn4b33$2nf65$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> <tn323o$2mbfk$1@news.trigofacile.com> <CI0Egf4AYlY@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <tn4b33$2nf65$1@news.trigofacile.com>
Subject: Re: MAXARTNUM extension
Date: Sun, 11 Dec 2022 11:23:31 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <D9E85xtkDAg@news.spitfire-nntp.fr> <tn323o$2mbfk$1@news.trigofacile.com> <CI0Egf4AYlY@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: Sun, 11 Dec 2022 10:23:31 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2866373"; 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:XYcTCpD3xdvbZe72tINvNqdDSeo= sha256:XDSOctEQXTaj96EfPRuPqOYUs3FqWArhAdJ0UGkAOD4= sha1:GY82vU9FKXkProGFah6cFnV+u5U= sha256:6TmuH3MOwSV8jJdxmqeAJouyCOVjKQVE/xyfdnpCw3E=
In-Reply-To: <CI0Egf4AYlY@news.spitfire-nntp.fr>