🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89836

Re: MAXARTNUM extension

#89836
From: Franck
Date: Mon, 12 Dec 2022 06:14
132 lines
5018 bytes
Hello,

Please let me know if I missed something.

Here is a telnet session of current updated MAXARTNUM extension :

I have a newsgroup with 4 articles with interesting numbers :

2147483646 <DQoDAeVAbws@dev.spitfire-nntp.fr>
2147483647 <DpJxkOqyBtc@dev.spitfire-nntp.fr>
2147483648 <D3yPBiC8r2A@dev.spitfire-nntp.fr>
4294967296 <DwE867tDRCo@dev.spitfire-nntp.fr>

First, let's try without MAXARTNUM.

C: LIST COUNTS
S: local.test.maxartnum 2147483647 2147483646 2 y

High and estimate are adjusted.

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.
No number can be > MAXARTNUM.

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

Article number set to 0.

C: OVER <DwE867tDRCo@dev.spitfire-nntp.fr>
S: 224 overview information follows:
S: 0	This article is above ^32	Franck <my@mail.is.invalid>	Sun, 11 Dec 
2022 10:20:36 +0100 <DwE867tDRCo@dev.spitfire-nntp.fr>	1101	1	Xref: 
dev.spitfire-nntp.fr local.test.maxartnum:0

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

C: GROUP local.test.maxartnum
S: 211 2 2147483646 2147483647 local.test.maxartnum group selected.

C: LISTGROUP
S: 211 2 2147483646 2147483647 local.test.maxartnum group selected.
S: 2147483646
S: 2147483647
S: .

Range is limited to MAXARTNUM.

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

Range is limited to MAXARTNUM.

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

C: MAXARTNUM 2147483648
S: 202 2147483648 is our mutual maximum article number.
C: NEXT
S: 223 2147483648 <D3yPBiC8r2A@dev.spitfire-nntp.fr> article selected.
C: NEXT
S: 502 next article has a number higher than our mutual maximum.


Now, if I try :

C: MAXARTNUM a
S: 501 syntax error in command or unknown 'MAXARTNUM' option.

C: MAXARTNUM ^63
S: 501 syntax error in command or unknown 'MAXARTNUM' option.

C: MAXARTNUM 1
S: 501 syntax error in command or unknown 'MAXARTNUM' option.

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

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

C: MAXARTNUM 123456789012
S: 202 123456789012 is our mutual maximum article number.
C: MAXARTNUM
S: 502 maximum article number already negociated to 123456789012.

Now, if I try CAPABILITIES :

C: CAPABILITIES
S: 101 capability list follows:
S: VERSION 2
S: IMPLEMENTATION Spitfire News Server DEV (64-bit)
S: AUTHINFO USER SASL
S: HDR
S: LIST ACTIVE ACTIVE.TIMES COUNTS HEADERS MODERATORS MOTD NEWSGROUPS 
OVERVIEW.FMT SUBSCRIPTIONS
S: MAXARTNUM 18446744073709551616
S: NEWNEWS
S: OVER MSGID
S: POST
S: READER
S: SASL CRAM-MD5 PLAIN
S: .

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

C: CAPABILITIES
S: 101 capability list follows:
S: VERSION 2
S: IMPLEMENTATION Spitfire News Server DEV (64-bit)
S: AUTHINFO USER SASL
S: HDR
S: LIST ACTIVE ACTIVE.TIMES COUNTS HEADERS MODERATORS MOTD NEWSGROUPS 
OVERVIEW.FMT SUBSCRIPTIONS
S: NEWNEWS
S: OVER MSGID
S: POST
S: READER
S: SASL CRAM-MD5 PLAIN
S: .
Technical Details
Message-ID: <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
References: <D9E85xtkDAg@news.spitfire-nntp.fr>

Show Full Headers
Complete Article Headers
Message-ID: <B6X9nw7kgEM@news.spitfire-nntp.fr>
Subject: Re: MAXARTNUM extension
Date: Mon, 12 Dec 2022 07:14:50 +0100
From: Franck <franck@email.invalid>
References: <D9E85xtkDAg@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
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: <D9E85xtkDAg@news.spitfire-nntp.fr>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Dec 2022 06:14:50 +0000 (UTC)
Injection-Info: news.spitfire-nntp.fr; posting-host="Xm9-U6dNB-RwG-EKTJsGwzVlHywvpp_BrtSnj2PJwiHTWwlW3Q7ZxJms5Y9hEifuxQkFbme4I7H45dwUiYRW2w=="; posting-account="i-iJygsh2Hh9yLFmtY-JhwNUupJRpPbSZQW7vi-nsoo="; logging-data="C6396c60b7874f111"; mail-complaints-to="abuse@spitfire-nntp.fr"
Cancel-Lock: sha1:uN5cdDKX9oFrGJOtlxNoybrUHlU= sha256:5QDVghagrvGAJPAxfh3qu6zUNj+DolXfKq/yZPv3+5U= sha1:52PIXhRhDE10apXpwNnFbpQsRbk= sha256:HCCGBez8+XzgaRvkE8xdxT0mPNphA8LaNQGwSJn5POk=
Organization: Home of Spitfire News Server, Montpellier (France).