Hi,
Reading
https://www.rfc-editor.org/rfc/rfc3977.html, I have some
questions understanding "last" and "next".
This is what the RFC says about "last":
If the currently selected newsgroup is valid, the current article
number MUST be set to the previous article in that newsgroup (that
is, the highest existing article number less than the current article
number). If successful, a response indicating the new current
article number and the message-id of that article MUST be returned.
No article text is sent in response to this command.
and the RFC gives some examples:
( [C] = client, [S] = server)
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] NEXT
[S] 223 3000237 <
[email protected]> retrieved
[C] LAST
[S] 223 3000234 <
[email protected]> retrieved
and:
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] LAST
[S] 422 No previous article to retrieve
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?
- Does this mean that the server must keep state, that is,
remembering that it answered 3000237 on a previous command?
This is what the RFC says about "next":
If the currently selected newsgroup is valid, the current article
number MUST be set to the next article in that newsgroup (that is,
the lowest existing article number greater than the current article
number). If successful, a response indicating the new current
article number and the message-id of that article MUST be returned.
No article text is sent in response to this command.
and an example:
[C] GROUP misc.test
[S] 211 1234 3000234 3002322 misc.test
[C] NEXT
[S] 223 3000237 <
[email protected]> retrieved
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?
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?
Any light on these points is very much appreciated!
(I hope that this is the right group for these questions)
Best regards,
Matto
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)