🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88289

Re: Wrong output for GROUP/LISTGROUP commands

#88289
From: Julien ÉLIE
Date: Mon, 30 Mar 2020 17:49
64 lines
3418 bytes
Hi Paolo,

> With INN 2.5 *and* 2.6, if a message is cancelled by a control cancel
> message, GROUP and LISTGROUP (first line) output shows the cancelled
> article as still existent.

LISTGROUP correctly shows the cancelled article as inexistent in the 
list of article numbers (lines after the response code).


> group local.test2
> 211 2 1 2 local.test2

Estimated count of articles: 2
Reported low watermark: 1
Reported high watermark: 2

This is a valid NNTP answer.  The use case is article reinstatement.
Had the answer been "211 1 2 2 local.test2" or "211 0 3 2 local.test2", 
reinstating the article would have been impossible (not RFC-compliant 
because the reported low watermark MUST NOT decrease).  For instance if 
an article is cancelled whereas it should have not, and you decide to 
reinstate it manually.


RFC 3977:

    The set of articles in a group may change after the GROUP command is
    carried out:

    o  Articles may be removed from the group.

    o  Articles may be reinstated in the group with the same article
       number, but those articles MUST have numbers no less than the
       reported low water mark (note that this is a reinstatement of the
       previous article, not a new article reusing the number).

[...]

    Except when the group is empty and all three numbers are zero,
    whenever a subsequent GROUP command for the same newsgroup is issued,
    either by the same client or a different client, the reported low
    water mark in the response MUST be no less than that in any previous
    response for that newsgroup in this session, and it SHOULD be no less
    than that in any previous response for that newsgroup ever sent to
    any client.  Any failure to meet the latter condition SHOULD be
    transient only.

[...]

    Note that a previously valid article number MAY become invalid if the
    article has been removed.  A previously invalid article number MAY
    become valid if the article has been reinstated, but this article
    number MUST be no less than the reported low water mark for that
    group.



I hope this explanation helps in understanding the 211 response code.

-- 
Julien ÉLIE

« Les trois journées de 1830 ont renversé 89. »
Technical Details
Message-ID: <r5tbff$niq$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
References: <r5se8o$ufl$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <r5tbff$niq$1@news.trigofacile.com>
Subject: Re: Wrong output for GROUP/LISTGROUP commands
Date: Mon, 30 Mar 2020 19:49:29 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <r5se8o$ufl$1@gioia.aioe.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: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Mar 2020 17:49:35 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a775006c30dd055deec4e4.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:6c30:dd05:5dee:c4e4"; logging-data="24154"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.6.0
In-Reply-To: <r5se8o$ufl$1@gioia.aioe.org>
Content-Language: fr