Article View: news.software.nntp
Article #90061Re: RFC3977: understanding "last" and "next"
From: Julien ÉLIE
Date: Fri, 03 Feb 2023 20:11
Date: Fri, 03 Feb 2023 20:11
80 lines
3990 bytes
3990 bytes
Hi Matto,
> [C] GROUP misc.test
> [S] 211 1234 3000234 3002322 misc.test
> [C] NEXT
> [S] 223 3000237 <668929@example.org> retrieved
> [C] LAST
> [S] 223 3000234 <45223423@example.com> retrieved
>
> From the first example, I get the impression that, when the client
> asked "next", the article 3000237 was the first above 300234, hence
> the server responded with the number and message-ID of this article.
>
> When the client then asked "last", the server looked at what the
> very first article is below 3000237, and comes with 3000234.
> - Is this correct?
Exactly.
> - Does this mean that the server must keep state, that is,
> remembering that it answered 3000237 on a previous command?
Indeed, that's the notion of "current article number".
When answering to NEXT, LAST and other commands returning article
numbers, the current article number is updated to reflect the latest
article number that has been selected via the use of the command.
The news server keeps that information during the NNTP session (as well
as the currently selected newsgroup, the rights of the user, etc.).
> From the text I understand that there is something like a "current
> article", and when looking at the example, the default "current article"
> is the article with the lowest number that is available. Is this
> correct?
Yes:
6.1. Group and Article Selection
The following commands are used to set the "currently selected
newsgroup" and the "current article number", which are used by
various commands. At the start of an NNTP session, both of these
values are set to the special value "invalid".
> When I read chapter 6.2.1. ARTICLE, I don't see anything about
> updating what the "current article" is. From this, I get the impression
> that only "last" and "next" infuence what must be seen as the
> "current article". Is this correct?
6.2.1. ARTICLE
Second form (article number specified)
220 n message-id Article follows (multi-line)
412 No newsgroup selected
423 No article with that number
6.2.1.2. Description
In the second form, an article number is specified. If there is an
article with that number in the currently selected newsgroup, the
server MUST set the current article number to that number.
> Any light on these points is very much appreciated!
> (I hope that this is the right group for these questions)
You're welcome.
--
Julien ÉLIE
« – Ce n'était pas ma question.
– C'était p'têt pas vot'question, oui, mais c'est ma réponse ! »
(Georges Marchais répondant à Alain Duhamel)
Technical Details
Message-ID:
<trjpor$j087$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:
<86k00yv831.fsf@sdf.org>Show Full Headers
Complete Article Headers
Message-ID: <trjpor$j087$1@news.trigofacile.com> Subject: Re: RFC3977: understanding "last" and "next" Date: Fri, 3 Feb 2023 21:11:06 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <86k00yv831.fsf@sdf.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 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: Fri, 3 Feb 2023 20:11:07 -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="622855"; 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.6.1 Cancel-Lock: sha1:zcBXMJvKjHzv0saXkbbjHjjgMDc= sha256:FSde+0yX47syfKtJl1AawcIWvNqvfQE+6uIJT/ynNJk= sha1:wq+75Yopr0644etlVr/R6AIaavQ= sha256:Uq9ati9lmZosN74a3PF7PAVVJuek8BRYejW/X3Uq3o0= In-Reply-To: <86k00yv831.fsf@sdf.org>