• [flnews] Support for NNTP extension MAXARTNUM

    From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Tue Dec 20 21:22:06 2022
    XPost: de.comm.software.newsreader

    This snapshot supports the NNTP extension MAXARTNUM [1]: <https://micha.freeshell.org/flnews/src/flnews-1.2.0pre17.tar.bz2> Size(flnews-1.2.0pre17.tar.bz2)= 1210540
    SHA2-256(flnews-1.2.0pre17.tar.bz2)= bfda27ae129c96e2e2374708b5ced2216177a0340f9c181c1b0f38aa94f92015


    [Xpost und Fup2 set to news.software.readers]


    ____________
    [1] MAXARTNUM draft from Julien Élie
    <news:tnqm14$35bas$1@news.trigofacile.com>
    (Message-ID: <tnqm14$35bas$1@news.trigofacile.com>)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Tue Dec 20 22:50:18 2022
    Hi Michael,

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

    --
    Julien ÉLIE

    « Je connais des sourds qui s'entendent très bien ! » (Philippe Geluck)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Wed Dec 21 13:10:58 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Julien_=c3=89LIE?=@21:1/5 to All on Wed Dec 21 22:30:02 2022
    Hi Michael,

    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.

    Yes, an extra double number of articles :)

    | [=>] CAPABILITIES
    | [<=] 101 capability list follows:
    | MAXARTNUM 18446744073709551616

    Oh, strange that 2^64 has been advertised. I've contacted the news
    admin. Now fixed!

    MAXARTNUM 18446744073709551615


    | [=>] MAXARTNUM 18446744073709551615
    | [<=] 202 18446744073709551615 is our mutual maximum article number.

    You can then have access to large article numbers:

    GROUP local.test.maxartnum
    211 18 2147483646 2147483663 local.test.maxartnum group selected.

    --
    Julien ÉLIE

    « Cette obscure clarté qui tombe des étoiles. » (Pierre Corneille)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael =?ISO-8859-1?Q?B=E4uerle?=@21:1/5 to All on Thu Dec 22 11:01:40 2022
    Julien ÉLIE wrote:
    Michael Bäuerle wrote:

    [...]
    | [=>] CAPABILITIES
    | [<=] 101 capability list follows:
    | MAXARTNUM 18446744073709551616

    Oh, strange that 2^64 has been advertised. I've contacted the news
    admin. Now fixed!

    MAXARTNUM 18446744073709551615

    Looks good now.

    | [=>] MAXARTNUM 18446744073709551615
    | [<=] 202 18446744073709551615 is our mutual maximum article number.

    You can then have access to large article numbers:

    GROUP local.test.maxartnum
    211 18 2147483646 2147483663 local.test.maxartnum group selected.

    Already tested with article: <news:AABjohKbFE0AADRD.A3.flnews@WStation7.micha.freeshell.org>
    (Message-ID: <AABjohKbFE0AADRD.A3.flnews@WStation7.micha.freeshell.org>)

    Quoted from flnews protocol logfile (available with "-debug" option):
    |
    | [...]
    | [=>] GROUP local.test.maxartnum
    | [<=] 211 18 2147483646 2147483663 local.test.maxartnum group selected.
    | [=>] OVER 2147483646-2147483663
    | [<=] 224 overview information follows:
    | [<= Expect multiline data block]
    | 2147483646 =?UTF-8?Q?Test_avec_num=c3=a9ro_=3c_2=5e31?= Franck <franck@email.invalid> Fri, 9 Dec 2022 07:31:13 +0100 <ALCjO/PYBcs@news.spitfire-nntp.fr> 1146 1 Xref: news.spitfire-nntp.fr local.test.maxartnum:2147483646
    | [...]
    | 2147483663 Re: Test avec =?ISO-8859-1?Q?num=E9ro?= > 2^31 Michael =?ISO-8859-1?Q?B=E4uerle?= <michael.baeuerle@gmx.net> Tue, 20 Dec 2022 20:52:59 +0100 <AABjohKbFE0AADRD.A3.flnews@WStation7.micha.freeshell.org> <AcdzNoTLEUM@news.spitfire-nntp.fr> <
    DLSTsU01j0o@news.spitfire-nntp.fr> 1317 9 Xref: news.spitfire-nntp.fr local.test.maxartnum:2147483663
    | [=>] ARTICLE 2147483663
    | [<=] 220 2147483663 <AABjohKbFE0AADRD.A3.flnews@WStation7.micha.freeshell.org> article follows:
    | [<= Expect multiline data block]
    | Path: news.spitfire-nntp.fr!.POSTED!not-for-mail
    | Message-ID: <AABjohKbFE0AADRD.A3.flnews@WStation7.micha.freeshell.org>
    | From: Michael =?ISO-8859-1?Q?B=E4uerle?= <michael.baeuerle@gmx.net>
    | Newsgroups: local.test.maxartnum
    | Subject: Re: Test avec =?ISO-8859-1?Q?num=E9ro?= > 2^31
    | Date: Tue, 20 Dec 2022 20:52:59 +0100
    | [...]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)