Article View: news.software.readers
Article #265915Re: [flnews] Support for NNTP extension MAXARTNUM
From: Michael Bäuerle
Date: Wed, 21 Dec 2022 12:10
Date: Wed, 21 Dec 2022 12:10
56 lines
2919 bytes
2919 bytes
Julien ÉLIE wrote: > Michael Bäuerle wrote: > > > > This snapshot supports the NNTP extension MAXARTNUM > > Oh, you were quick to add support for it. Thanks! > > (Yes, I know MAXARTNUM is far easier to implement in news readers than > in news servers!) flnews is written in C90/C++98, therefore there may be no 64-bit data type available. The data type "unsigned long int" is internally used for article numbers and ULONG_MAX as limit. This means that on machines where "unsigned long int" is 32-bit wide, there are still much more article numbers (beyond 2^31-1) usable with the MAXARTNUM extension. Protocol log from a machine with AMD64 architecture: | | [Using NNTP protocol driver] | [=> Connect to news.spitfire-nntp.fr:nntp] | [<=] 200 news.spitfire-nntp.fr running Spitfire News Server 0.9 (Posting allowed). | [=>] CAPABILITIES | [<=] 101 capability list follows: | [<= Expect multiline data block] | VERSION 2 | IMPLEMENTATION Spitfire News Server 0.9.290.0 (64-bit) | AUTHINFO USER SASL | HDR | LIST ACTIVE ACTIVE.TIMES COUNTS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS | MAXARTNUM 18446744073709551616 | NEWNEWS | OVER | POST | READER | SASL CRAM-MD5 PLAIN | [Switch to NNTP V2 (RFC 3977) mode] | [=>] MAXARTNUM 18446744073709551615 | [<=] 202 18446744073709551615 is our mutual maximum article number. | [=>] CAPABILITIES | [<=] 101 capability list follows: | [<= Expect multiline data block] | VERSION 2 | IMPLEMENTATION Spitfire News Server 0.9.290.0 (64-bit) | AUTHINFO USER SASL | HDR | LIST ACTIVE ACTIVE.TIMES COUNTS HEADERS MODERATORS MOTD NEWSGROUPS OVERVIEW.FMT SUBSCRIPTIONS | NEWNEWS | OVER | POST | READER | SASL CRAM-MD5 PLAIN | [...] MAXARTNUM is no longer advertised after capability refresh.
Technical Details
Message-ID:
<AABjovfSgXEAAAlZ.A3.flnews@WStation5.stz-e.de>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-mailReferences:
<AABjohlu4W0AADUn.A3.flnews@WStation7.micha.freeshell.org> <k0ep0qFgigcU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <AABjovfSgXEAAAlZ.A3.flnews@WStation5.stz-e.de> Subject: Re: [flnews] Support for NNTP extension MAXARTNUM Date: Wed, 21 Dec 2022 12:10:58 +0000 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <AABjohlu4W0AADUn.A3.flnews@WStation7.micha.freeshell.org> <k0ep0qFgigcU1@mid.individual.net> 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.readers Lines: 56 Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net QrJHK1TlpsLbM24JBE/vawX1Oi5OBJtZufUeDdDjc9/JDqNOXv X-Orig-Path: not-for-mail Cancel-Lock: sha1:dPPPaii75FOvzmiJybYPrFQViK0= sha256:Tm0wixdAU/NYQFLH0iu80OUuopHP1KGEaCLmbRq2zYo= sha1:XoPyHUv2gYQIbYvSAHlt6iVBBzo= Injection-Date: Wed, 21 Dec 2022 12:10:58 -0000 User-Agent: flnews/1.2.0pre17 (for NetBSD)