Article View: news.software.nntp
Article #89810Re: MAXARTNUM extension
From: Julien ÉLIE
Date: Sat, 10 Dec 2022 22:44
Date: Sat, 10 Dec 2022 22:44
113 lines
4802 bytes
4802 bytes
Salut Franck,
Allez les Bleus !! :-)
> - If MAXARTNUM disabled for "anonymous" accessgroup, server will reply
> with "480 authentification required".
>
> - If MAXARTNUM disabled for another accessgroup, server reply with "502
> MAXARTNUM command disabled by administrator".
That seems good.
> - MAXARTNUM accept a number as argument or ^31 -> ^63. If MAXARTNUM <
> ^31 or > ^63, server reply with "501 syntax error".
Incidentally, is there a reason for Spitfire not to handle numbers up to
2^64-1, using unsigned long long?
I would not return 501 if MAXARTNUM > your maximum.
MAXARTNUM ^100
202 (2^63-1) <-- the mutual maximum negotiated
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.
> - If a reader use NEXT to access numbers > ^31, server reply with "401
> maximum article number reached".
>
> - Once used, MAXARTNUM cannot be set again.
So, before using MAXARTNUM, it should be:
401 MAXARTNUM
And after using it, I propose:
502 Next article has an article number larger than our mutual maximum
> - 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?
I note in RFC 5536 that article locators are implementation-specific.
They could even be something different than a number.
So I would just keep Xref untouched when sending it in overview data or
in header fields.
Just my opinion. Maybe there is a good reason to either rewrite article
locators for large article numbers? (or even remove Xref? - a serving
agent can do that)
xref = "Xref:" SP *WSP server-name
1*( FWS location ) *WSP CRLF
server-name = path-identity
location = newsgroup-name ":" article-locator
article-locator = 1*( %x21-27 / %x29-3A / %x3C-7E )
; US-ASCII printable characters
; except '(' and ';'
The <server-name> is included so that software can determine which
news server generated the header field. The locations specify where
the article is filed -- i.e., under which newsgroups (which may
differ from those in the Newsgroups header field), and where under
those newsgroups. The exact form of an <article-locator> is
implementation-specific.
NOTE: The traditional form of an <article-locator> (as required by
[RFC3977]) is a decimal number, with articles in each newsgroup
numbered consecutively starting from 1.
> - NEWNEWS display ALL <Message-ID> (< or > ^31).
Yes!
> Please let me know if you find something wrong or if you have any
> suggestions.
It could be worth mentioning the case of an empty newsgroup with large
numbers. The preferred notation is:
Low = MAXARTNUM
High = MAXARTNUM-1
Count = 0
Also, a second call to MAXARTNUM causes 502 (already used).
--
Julien ÉLIE
« La libertad, Sancho, es uno de los más preciosos dones que a los
hombres dieron los cielos; con ella no pueden igualarse los tesoros
que encierran la tierra y el mar: por la libertad, así como por la
honra, se puede y debe aventurar la vida. » (Miguel de Cervantes
Saavedra)
Technical Details
Message-ID:
<tn323o$2mbfk$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-mailReferences:
<D9E85xtkDAg@news.spitfire-nntp.fr>Show Full Headers
Complete Article Headers
Message-ID: <tn323o$2mbfk$1@news.trigofacile.com> Subject: Re: MAXARTNUM extension Date: Sat, 10 Dec 2022 23:44:08 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.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 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: Sat, 10 Dec 2022 22:44:08 -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="2829812"; 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:hIr5vnayEP1CCoHWhkLVkWvoy5w= sha256:RD1UZ0uOywqqHH3dQFl9YqszsQUfdLHDzXKIDVsSleY= sha1:AT1eGOZR6G8KiS0y9zmYFAl9f0U= sha256:/2HYhmpndq9oUYO2hFmC25bhitQ9S1JjseNA0yl9aZw= In-Reply-To: <D9E85xtkDAg@news.spitfire-nntp.fr>