🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89992

Re: Proposal specifications for MAXARTNUM

#89992
From: Michael Bäuerle
Date: Thu, 05 Jan 2023 09:32
55 lines
3168 bytes
Julien ÉLIE wrote:
> 
> [...]
> From RFC 3977:
> 
>    o  Although this specification allows UTF-8 for newsgroup names, they
>       SHOULD be restricted to US-ASCII until a successor to RFC 1036
>       [RFC1036] standardises another approach.  8-bit encodings SHOULD
>       NOT be used because they are likely to cause interoperability
>       problems.
> 
>    Until such specifications
>    are published, implementations SHOULD match newsgroup names octet by
>    octet.  It is anticipated that any approved scheme will be applied
>    "at the edges", and therefore octet-by-octet comparison will continue
>    to apply to most, if not all, uses of newsgroup names in NNTP.
> 
> If we're going to have only a very few, if any, more general "ENABLE"
> commands, is it worth the complexification of defining its parsing
> instead of just having top-level commands?
> 
> ENABLE MAXARTNUM=18446744073709551615 UTF8=ACCEPT NULCHARS=ACCEPT
> MAXRESPLINES=UNLIMITED

There are potential problems if not all of the features are supported
by the server. The command likely will be rejected with an error code,
no feature will be enabled and the client doesn't know which subcommand
was responsible for the problem. The client has to parse the response
for information or test all features individually.
In theory this should not happen, if the client has parsed CAPABILITIES
carefully, but in real world there may be bugs somewhere.

I would prefer simplicity, this means only one feature per command.
But maybe the toplevel command "ENABLE", to enable/negotiate features,
is useful to share the same return codes for all features.

Like this it would work similar to LIST or COMPRESS:

C CAPABILITIES
S 101 Capability list:
S VERSION 2
S ENABLE MAXARTNUM UTF8 NULCHARS MAXRESPLINES
S .

C ENABLE MAXARTNUM=18446744073709551615
S 2xx
C ENABLE UTF-8=ACCEPT
S 500
C ENABLE NULCHARS=ACCEPT
S 2xx
C ENABLE MAXRESPLINES=UNLIMITED
S 2xx

This has to be done only once per session and the additional roundtrip
times should be acceptable if the number of features is small.
Technical Details
Message-ID: <AABjtplGZckAAAqY.A3.flnews@WStation7.micha.freeshell.org>
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: <tnqm14$35bas$1@news.trigofacile.com> <tou5si$1na9g$1@dont-email.me> <tp53et$7clk$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABjtplGZckAAAqY.A3.flnews@WStation7.micha.freeshell.org>
Subject: Re: Proposal specifications for MAXARTNUM
Date: Thu, 05 Jan 2023 09:32:54 +0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <tnqm14$35bas$1@news.trigofacile.com> <tou5si$1na9g$1@dont-email.me> <tp53et$7clk$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
Newsgroups: news.software.nntp
Lines: 55
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net iCsEZx8KGXLKyMaaOHDcJQ816HROUdZIFPGiPyUwVSVj3++kEX
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:WC/YkYlUtAGPjA2ZiF+Yv5JDGu8= sha256:k8FFedP7vQ+xsMUkQnKw7/jB5RVZUg2jnwwMMWTb9FM= sha1:u4YqJbaRFbZ6kxBT+ApyyTRN5LM=
Injection-Date: Thu, 5 Jan 2023 09:32:54 -0000
User-Agent: flnews/1.2.0pre17 (for GNU/Linux)