
From ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org  Thu May 12 20:17:05 2011
Return-Path: <ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@ietfa.amsl.com
Delivered-To: ietfarch-nntpext-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 92791E06E7 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Thu, 12 May 2011 20:17:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.962
X-Spam-Level: 
X-Spam-Status: No, score=0.962 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HOST_EQ_MODEMCABLE=1.368, HOST_MISMATCH_COM=0.311, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HkVJmjM7RoHs for <ietfarch-nntpext-archive@ietfa.amsl.com>; Thu, 12 May 2011 20:17:05 -0700 (PDT)
Received: from hope.eyrie.org (hope.eyrie.org [IPv6:2001:470:30:84:e276:63ff:fe62:3535]) by ietfa.amsl.com (Postfix) with ESMTP id BD9C5E0593 for <nntpext-archive@ietf.org>; Thu, 12 May 2011 20:17:01 -0700 (PDT)
Received: from hope.eyrie.org (unknown [IPv6:::1]) by hope.eyrie.org (Postfix) with ESMTP id 3F14867DEB for <nntpext-archive@ietf.org>; Thu, 12 May 2011 20:17:00 -0700 (PDT)
X-Original-To: ietf-nntp@lists.eyrie.org
Delivered-To: ietf-nntp@lists.eyrie.org
Received: from Mintaka.sabahattin-gucukoglu.com (sgucukoglu-2-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:7ef::2]) by hope.eyrie.org (Postfix) with ESMTP id 069C967DE6 for <ietf-nntp@lists.eyrie.org>; Thu, 12 May 2011 20:16:57 -0700 (PDT)
Received: from Mintaka.sabahattin-gucukoglu.com ([::ffff:127.0.0.1]:46506) by Mintaka.sabahattin-gucukoglu.com with [XMail 1.27 ESMTP Server] id <S336F5> for <ietf-nntp@lists.eyrie.org> from <mail-dated-1306870341.df4742@sabahattin-gucukoglu.com>;  Sun, 1 May 2011 20:32:21 +0100
Received: from [192.168.1.3] (cpc2-dals7-0-0-cust570.hari.cable.virginmedia.com [82.35.114.59]) (using SMTP over TLS) by Mintaka (tmda-ofmipd) with ESMTP; Sun, 01 May 2011 20:32:19 +0100
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Sun, 1 May 2011 20:32:15 +0100
Message-Id: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com>
To: ietf-nntp@lists.eyrie.org
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
X-Delivery-Agent: TMDA/1.1.12-kg3 (Haumea)
From: Sabahattin Gucukoglu <mail@sabahattin-gucukoglu.com>
X-Primary-Address: mail@sabahattin-gucukoglu.com
Subject: [NNTP] Article Reinstatement, Was Article Numbers Becoming Invalid (RFC 3977)
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Sabahattin Gucukoglu <mail-dated-1306870341.df4742@sabahattin-gucukoglu.com>
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/options/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org

Okay, so I *finally* read through all the postings for the thread which =
I started.  Sorry about that!  Now I am happy with the outcome, it =
confirms my understanding of the specification, and all the errata are =
good.  But as far as I can see there is still one more problem ...

Article reinstatement, besides the stated uses of gradual cluster-wide =
synchronisation (which makes perfect sense) poses a small problem for =
many clients using articles as intended, monotonically increasing unique =
per-server references to articles.  If a client should not be aware that =
an article has been removed pending reinstatement, it has no reason to =
suspect that the low watermark will ever decrease.  Even if it wanted =
to, it could not straightforwardly obtain any articles that were added, =
and then removed pending reinstatement, both in the client's absence, =
when they were finally reinstated.

Example: news.test has 5 messages, min=3D1 max=3D5.  Article 1 is =
removed.  Server indicates on group entry to news.test, min=3D2 max=3D5 =
no=3D4.  The client updates its counters to indicate that article 5 was =
the last article seen.  Article 1 is replaced.  Client connects, server =
indicates min=3D1 max=3D5 no=3D5.  How is the client to ensure the =
retrieval of article 1?  The low watermark may certainly indicate its =
presence, but it can hardly assume that an article was reinstated simply =
because on this occasion min=3D1 is the smallest value seen; the article =
numbered 1 may already have been fetched under normal conditions, or the =
heuristic will not work at all if group expiration on criteria other =
than number of articles has occurred, for instance.

Does anybody have any ideas?

Cheers,
Sabahattin

From ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org  Fri May 13 10:06:16 2011
Return-Path: <ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@ietfa.amsl.com
Delivered-To: ietfarch-nntpext-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1F681E07E4 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Fri, 13 May 2011 10:06:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.81
X-Spam-Level: 
X-Spam-Status: No, score=-0.81 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tb5v8tgfqmfr for <ietfarch-nntpext-archive@ietfa.amsl.com>; Fri, 13 May 2011 10:06:15 -0700 (PDT)
Received: from hope.eyrie.org (hope.eyrie.org [IPv6:2001:470:30:84:e276:63ff:fe62:3535]) by ietfa.amsl.com (Postfix) with ESMTP id 717D9E074A for <nntpext-archive@ietf.org>; Fri, 13 May 2011 10:06:15 -0700 (PDT)
Received: from hope.eyrie.org (unknown [IPv6:::1]) by hope.eyrie.org (Postfix) with ESMTP id 715A267DEA for <nntpext-archive@ietf.org>; Fri, 13 May 2011 10:06:14 -0700 (PDT)
X-Original-To: ietf-nntp@lists.eyrie.org
Delivered-To: ietf-nntp@lists.eyrie.org
Received: from denver.dinauz.org (denver.dinauz.org [91.121.7.193]) by hope.eyrie.org (Postfix) with ESMTP id 51A7867D1C for <ietf-nntp@lists.eyrie.org>; Fri, 13 May 2011 10:06:13 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by denver.dinauz.org (Postfix) with ESMTP id 143768174; Fri, 13 May 2011 19:06:12 +0200 (CEST)
Received: from denver.dinauz.org ([127.0.0.1]) by localhost (denver.dinauz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ni7zjtaJrtRD; Fri, 13 May 2011 19:06:12 +0200 (CEST)
Received: from MacBook-Pro-de-Julien-Elie.local (AAubervilliers-552-1-130-234.w81-249.abo.wanadoo.fr [81.249.129.234]) by denver.dinauz.org (Postfix) with ESMTPSA id C0F618173; Fri, 13 May 2011 19:06:11 +0200 (CEST)
Message-ID: <4DCD6503.2060302@trigofacile.com>
Date: Fri, 13 May 2011 19:06:11 +0200
From: =?ISO-8859-1?Q?Julien_=C9LIE?= <julien@trigofacile.com>
Organization: TrigoFACILE -- http://www.trigofacile.com/
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: ietf-nntp@lists.eyrie.org
References: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com>
In-Reply-To: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: [NNTP] Article Reinstatement
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/options/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org

Hi Sabahattin,

> If a client should not be aware that an article has been removed
> pending reinstatement, it has no reason to suspect that the low
> watermark will ever decrease.

The low watermark can not decrease.



> Example: news.test has 5 messages, min=1 max=5.  Article 1 is
> removed.  Server indicates on group entry to news.test, min=2 max=5
> no=4.  The client updates its counters to indicate that article 5 was
> the last article seen.  Article 1 is replaced.  Client connects,
> server indicates min=1 max=5 no=5.  How is the client to ensure the
> retrieval of article 1?

It is not an RFC-compliant behaviour.
min could not have been set to 2.

RFC 3977, Section 6.1.1.2:

    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).

[...]
    No similar
    assumption can be made about the high water mark, as this can
    decrease if an article is removed and then increase again if it is
    reinstated or if new articles arrive.



> The low watermark may certainly indicate its
> presence, but it can hardly assume that an article was reinstated
> simply because on this occasion min=1 is the smallest value seen; the
> article numbered 1 may already have been fetched under normal
> conditions, or the heuristic will not work at all if group expiration
> on criteria other than number of articles has occurred, for
> instance.
>
> Does anybody have any ideas?

I do not understand your point.

Wouldn't it rather be:

news.test has 5 messages, min=1 max=5 count=5
1. remove #1
min=1 max=5 count=4
2. reinstate #1 and remove #3
min=1 max=5 count=4

So a client that comes between action 1 and action 2 will never see #1; 
it won't ask for #1 afterwards because the high water mark is 5.  The 
same way as a client coming after action 2 will never see #3.
But is it really a problem?

-- 
Julien ÉLIE

« Il faut que j'en parle à notre chef ; ce n'est pas normal que des
   Romains bravent les dangers de la forêt, surtout quand les dangers,
   c'est nous ! » (Astérix)

From ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org  Sat May 14 12:09:02 2011
Return-Path: <ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@ietfa.amsl.com
Delivered-To: ietfarch-nntpext-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF2DFE0711 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:09:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.962
X-Spam-Level: 
X-Spam-Status: No, score=0.962 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HOST_EQ_MODEMCABLE=1.368, HOST_MISMATCH_COM=0.311, RCVD_IN_PBL=0.905, RCVD_IN_SORBS_DUL=0.877, RDNS_DYNAMIC=0.1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vH+o-WeK58NW for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:09:02 -0700 (PDT)
Received: from hope.eyrie.org (hope.eyrie.org [IPv6:2001:470:30:84:e276:63ff:fe62:3535]) by ietfa.amsl.com (Postfix) with ESMTP id F2EE4E0701 for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:09:01 -0700 (PDT)
Received: from hope.eyrie.org (unknown [IPv6:::1]) by hope.eyrie.org (Postfix) with ESMTP id 29A1D67DEB for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:08:58 -0700 (PDT)
X-Original-To: ietf-nntp@lists.eyrie.org
Delivered-To: ietf-nntp@lists.eyrie.org
Received: from Mintaka.sabahattin-gucukoglu.com (sgucukoglu-2-pt.tunnel.tserv8.dal1.ipv6.he.net [IPv6:2001:470:1f0e:7ef::2]) by hope.eyrie.org (Postfix) with ESMTP id C30EA67D1C for <ietf-nntp@lists.eyrie.org>; Sat, 14 May 2011 12:08:56 -0700 (PDT)
Received: from Mintaka.sabahattin-gucukoglu.com ([::ffff:127.0.0.1]:59123) by Mintaka.sabahattin-gucukoglu.com with [XMail 1.27 ESMTP Server] id <S34434> for <ietf-nntp@lists.eyrie.org> from <mail-dated-1307992134.5d56d3@sabahattin-gucukoglu.com>;  Sat, 14 May 2011 20:08:54 +0100
Received: from [192.168.1.20] (cpc2-dals7-0-0-cust570.hari.cable.virginmedia.com [82.35.114.59]) (using SMTP over TLS) by Mintaka.sabahattin-gucukoglu.com (tmda-ofmipd) with ESMTP; Sat, 14 May 2011 20:08:52 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Apple Message framework v1084)
In-Reply-To: <4DCD6503.2060302@trigofacile.com>
Date: Sat, 14 May 2011 20:08:51 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <E4634E62-C386-40D1-A2C2-BEC6D2331D90@sabahattin-gucukoglu.com>
References: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com> <4DCD6503.2060302@trigofacile.com>
To: ietf-nntp@lists.eyrie.org
X-Mailer: Apple Mail (2.1084)
X-Delivery-Agent: TMDA/1.1.12-kg3 (Haumea)
From: Sabahattin Gucukoglu <mail@sabahattin-gucukoglu.com>
X-Primary-Address: mail@sabahattin-gucukoglu.com
Subject: Re: [NNTP] Article Reinstatement
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Sabahattin Gucukoglu <mail-dated-1307992134.5d56d3@sabahattin-gucukoglu.com>
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/options/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org

On 13 May 2011, at 18:06, Julien =C9LIE wrote:
>> If a client should not be aware that an article has been removed
>> pending reinstatement, it has no reason to suspect that the low
>> watermark will ever decrease.
>=20
> The low watermark can not decrease.

Even when the client disconnects?

> Example: news.test has 5 messages, min=3D1 max=3D5.  Article 1 is
>> removed.  Server indicates on group entry to news.test, min=3D2 max=3D5=

>> no=3D4.  The client updates its counters to indicate that article 5 =
was
>> the last article seen.  Article 1 is replaced.  Client connects,
>> server indicates min=3D1 max=3D5 no=3D5.  How is the client to ensure =
the
>> retrieval of article 1?
>=20
> It is not an RFC-compliant behaviour.
> min could not have been set to 2.

So what does a server do when the lowest-numbered article is pending =
reinstatement and the client requests it?

> RFC 3977, Section 6.1.1.2:
>=20
>   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).

This does make sense, but doesn't apply to the high watermark.

> [...]
>   No similar
>   assumption can be made about the high water mark, as this can
>   decrease if an article is removed and then increase again if it is
>   reinstated or if new articles arrive.

Looking back at my original message, I see that I made an assumption =
that the high and low watermarks were always valid articles, but I can =
see now that the RFC has us covered in the special case of =
reinstatement.  Good. :-)

> The low watermark may certainly indicate its
>> presence, but it can hardly assume that an article was reinstated
>> simply because on this occasion min=3D1 is the smallest value seen; =
the
>> article numbered 1 may already have been fetched under normal
>> conditions, or the heuristic will not work at all if group expiration
>> on criteria other than number of articles has occurred, for
>> instance.
>>=20
>> Does anybody have any ideas?
>=20
> I do not understand your point.
>=20
> Wouldn't it rather be:
>=20
> news.test has 5 messages, min=3D1 max=3D5 count=3D5
> 1. remove #1
> min=3D1 max=3D5 count=3D4
> 2. reinstate #1 and remove #3
> min=3D1 max=3D5 count=3D4

By which we understand that an invalid article response will result from =
requesting a removed article, yes?

> So a client that comes between action 1 and action 2 will never see =
#1; it won't ask for #1 afterwards because the high water mark is 5.  =
The same way as a client coming after action 2 will never see #3.
> But is it really a problem?

Taking into account the use of article reinstatement, probably not in =
many cases, but you can imagine that if you are a news puller or offline =
reader, you want to go forward in the article stream and not worry about =
what came before.  Any circumstance that results in article deletion =
should be permanent, from the client's perspective.  But yes, it's just =
me, picking nits. :-)

Cheers,
Sabahattin

From ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org  Sat May 14 12:37:57 2011
Return-Path: <ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@ietfa.amsl.com
Delivered-To: ietfarch-nntpext-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4CB2AE0700 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:37:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.555
X-Spam-Level: 
X-Spam-Status: No, score=-1.555 tagged_above=-999 required=5 tests=[AWL=0.744, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E0AJ6qXiyNC5 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:37:56 -0700 (PDT)
Received: from hope.eyrie.org (hope.eyrie.org [IPv6:2001:470:30:84:e276:63ff:fe62:3535]) by ietfa.amsl.com (Postfix) with ESMTP id 94A35E0701 for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:37:56 -0700 (PDT)
Received: from hope.eyrie.org (unknown [IPv6:::1]) by hope.eyrie.org (Postfix) with ESMTP id 2B80367DEB for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:37:56 -0700 (PDT)
X-Original-To: ietf-nntp@lists.eyrie.org
Delivered-To: ietf-nntp@lists.eyrie.org
Received: from denver.dinauz.org (denver.dinauz.org [91.121.7.193]) by hope.eyrie.org (Postfix) with ESMTP id 71FE067D1C for <ietf-nntp@lists.eyrie.org>; Sat, 14 May 2011 12:37:54 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by denver.dinauz.org (Postfix) with ESMTP id AA439815F; Sat, 14 May 2011 21:37:52 +0200 (CEST)
Received: from denver.dinauz.org ([127.0.0.1]) by localhost (denver.dinauz.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EaBNukB1piQZ; Sat, 14 May 2011 21:37:52 +0200 (CEST)
Received: from MacBook-Pro-de-Julien-Elie.local (AAubervilliers-552-1-130-234.w81-249.abo.wanadoo.fr [81.249.129.234]) by denver.dinauz.org (Postfix) with ESMTPSA id 6DFDA815D; Sat, 14 May 2011 21:37:52 +0200 (CEST)
Message-ID: <4DCEDA10.5050402@trigofacile.com>
Date: Sat, 14 May 2011 21:37:52 +0200
From: =?ISO-8859-1?Q?Julien_=C9LIE?= <julien@trigofacile.com>
Organization: TrigoFACILE -- http://www.trigofacile.com/
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: ietf-nntp@lists.eyrie.org
References: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com>	<4DCD6503.2060302@trigofacile.com> <E4634E62-C386-40D1-A2C2-BEC6D2331D90@sabahattin-gucukoglu.com>
In-Reply-To: <E4634E62-C386-40D1-A2C2-BEC6D2331D90@sabahattin-gucukoglu.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: [NNTP] Article Reinstatement
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/options/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org

Hi Sabahattin,

>> The low watermark can not decrease.
>
> Even when the client disconnects?

Yes, the low water mark SHOULD NOT decrease.

Section 6.1.1.2:

    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.  The client may make use of the low water mark to
    remove all remembered information about articles with lower numbers,
    as these will never recur.



>> It is not an RFC-compliant behaviour. min could not have been set
>> to 2.
>
> So what does a server do when the lowest-numbered article is pending
> reinstatement and the client requests it?

The news server just answers the article does not exist:

    First form (message-id specified)
      430                   No article with that message-id

    Second form (article number specified)
      423                   No article with that number

    Third form (current article number used)
      423                   No article with that number


Note that reinstatement can be done on other articles than the 
lowest-numbered article.



>> RFC 3977, Section 6.1.1.2:
>>
>> 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).
>
> This does make sense, but doesn't apply to the high watermark.

The high water mark can decrease.
It can happen with cancels for instance.  Note that such a behaviour is 
implementation-specific.  A news server can keep the high water mark 
without decreasing it.



>> [...] No similar assumption can be made about the high water mark,
>> as this can decrease if an article is removed and then increase
>> again if it is reinstated or if new articles arrive.
>
> Looking back at my original message, I see that I made an assumption
> that the high and low watermarks were always valid articles, but I
> can see now that the RFC has us covered in the special case of
> reinstatement.  Good. :-)

And also the fact that articles can expire and no longer be present in 
the news spool.  The low water mark does not necessarily point to a 
still retrievable article at the time an ARTICLE command is sent.



>> news.test has 5 messages, min=1 max=5 count=5 1. remove #1 min=1
>> max=5 count=4 2. reinstate #1 and remove #3 min=1 max=5 count=4
>
> By which we understand that an invalid article response will result
> from requesting a removed article, yes?

Not "invalid", but "inexistent".



>> So a client that comes between action 1 and action 2 will never see
>> #1; it won't ask for #1 afterwards because the high water mark is
>> 5.  The same way as a client coming after action 2 will never see
>> #3. But is it really a problem?
>
> Taking into account the use of article reinstatement, probably not in
> many cases, but you can imagine that if you are a news puller or
> offline reader, you want to go forward in the article stream and not
> worry about what came before.  Any circumstance that results in
> article deletion should be permanent, from the client's perspective.
> But yes, it's just me, picking nits. :-)

It is up to the client to decide how to implement its retrieval of 
articles.  If it assumes the article stream always go forward (which 
happens nearly all the time), then it will miss reinstatements.  That's 
all.  The client just prefers rapidity to exhaustivity (sending a 
LISTGROUP every time, or every n times, it connects to a news group).

-- 
Julien ÉLIE

« Pour une personne optimiste, le verre est à moitié plein. Pour une
   personne pessimiste, il est à moitié vide. Pour l'informaticien, il
   est deux fois plus grand que nécessaire. »

From ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org  Sat May 14 12:56:53 2011
Return-Path: <ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org>
X-Original-To: ietfarch-nntpext-archive@ietfa.amsl.com
Delivered-To: ietfarch-nntpext-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 121E6E0715 for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:56:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.81
X-Spam-Level: 
X-Spam-Status: No, score=-0.81 tagged_above=-999 required=5 tests=[BAYES_05=-1.11, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 56AXvovOzpwC for <ietfarch-nntpext-archive@ietfa.amsl.com>; Sat, 14 May 2011 12:56:52 -0700 (PDT)
Received: from hope.eyrie.org (hope.eyrie.org [IPv6:2001:470:30:84:e276:63ff:fe62:3535]) by ietfa.amsl.com (Postfix) with ESMTP id 3A677E0700 for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:56:52 -0700 (PDT)
Received: from hope.eyrie.org (unknown [IPv6:::1]) by hope.eyrie.org (Postfix) with ESMTP id 9E44367DEB for <nntpext-archive@ietf.org>; Sat, 14 May 2011 12:56:51 -0700 (PDT)
X-Original-To: ietf-nntp@lists.eyrie.org
Delivered-To: ietf-nntp@lists.eyrie.org
Received: from nyder.davros.org (nyder.davros.org [82.68.24.146]) by hope.eyrie.org (Postfix) with ESMTP id 43E7B67DE5 for <ietf-nntp@lists.eyrie.org>; Sat, 14 May 2011 12:56:49 -0700 (PDT)
Received: from nyder.davros.org (localhost [127.0.0.1]) by nyder.davros.org (8.14.4/8.14.4) with ESMTP id p4EK0MtB006001; Sat, 14 May 2011 21:00:22 +0100 (BST) (envelope-from clive@nyder.davros.org)
Received: (from clive@localhost) by nyder.davros.org (8.14.4/8.14.4/Submit) id p4EK0Mev006000; Sat, 14 May 2011 21:00:22 +0100 (BST) (envelope-from clive)
Date: Sat, 14 May 2011 21:00:22 +0100
From: "Clive D.W. Feather" <clive@davros.org>
To: Julien =?iso-8859-1?Q?=C9LIE?= <julien@trigofacile.com>
Message-ID: <20110514200022.GI6507@davros.org>
References: <F5F3320A-9B6A-4566-889C-A667D1360871@sabahattin-gucukoglu.com> <4DCD6503.2060302@trigofacile.com> <E4634E62-C386-40D1-A2C2-BEC6D2331D90@sabahattin-gucukoglu.com> <4DCEDA10.5050402@trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4DCEDA10.5050402@trigofacile.com>
User-Agent: Mutt/1.4.2.3i
Cc: ietf-nntp@lists.eyrie.org
Subject: Re: [NNTP] Article Reinstatement
X-BeenThere: ietf-nntp@lists.eyrie.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: NNTP protocol discussion <ietf-nntp.lists.eyrie.org>
List-Unsubscribe: <http://lists.eyrie.org/mailman/options/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=unsubscribe>
List-Archive: <http://lists.eyrie.org/pipermail/ietf-nntp>
List-Post: <mailto:ietf-nntp@lists.eyrie.org>
List-Help: <mailto:ietf-nntp-request@lists.eyrie.org?subject=help>
List-Subscribe: <http://lists.eyrie.org/mailman/listinfo/ietf-nntp>, <mailto:ietf-nntp-request@lists.eyrie.org?subject=subscribe>
Sender: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org
Errors-To: ietf-nntp-bounces+nntpext-archive=ietf.org@lists.eyrie.org

>    The client may make use of the low water mark to
>    remove all remembered information about articles with lower numbers,
>    as these will never recur.

This was written like that so as to support the common behaviour of a
.newsrc file that contained lines like:

    uk.railway: 1-85623,85625,85629-85641

which listed the articles to be treated as read. If the server offers a
low-water mark of 85627, the client knows that 85624 and 85626 are *never*
going to get read and can change the line to:

    uk.railway: 1-85626,85629-85641

-- 
Clive D.W. Feather          | If you lie to the compiler,
Email: clive@davros.org     | it will get its revenge.
Web: http://www.davros.org  |   - Henry Spencer
Mobile: +44 7973 377646
