Article View: news.software.nntp
Article #85444Re: NNTP API (Java)
From: Thufir Hawat
Date: Sun, 17 Feb 2013 05:56
Date: Sun, 17 Feb 2013 05:56
47 lines
3290 bytes
3290 bytes
On Sat, 16 Feb 2013 22:45:29 -0600, Joshua Cranmer 🐧 wrote:
> On 2/16/2013 3:28 AM, Thufir Hawat wrote:
>> My concern is that the "id" isn't reliable:
>>
>> "Note that the message number for a particular Message can change
>> during a session if other messages in the Folder are deleted and
>> expunged."
>
> This documentation quote is clearly concerning itself with IMAP (the
> verb "expunge" is a very clear keyword here), where message sequence
> numbers can change as messages are deleted. The message numbers in NNTP
> are closer in spirit to IMAP's UIDs in that they (almost) never change.
My concern is that when the check for new articles runs:
GroupResponse response = ns.connection.group(name);
if (response.last > last)
that the variable "last" is a count of articles already downloaded.
Wheras response.last is the article number upstream, and so apples are
being compared to oranges. Perhaps the upstream server has purged
articles, or maybe articles downstream have been purged.
In concrete terms, let's say on day one the articles are numbered 1 to
1000 (no gaps) and articles numbered 900 to 1000 are fetched. Then 100
new articles are posted upstream, bringing the highest article number to
1100. However, let's say 50 articles expire, so there are now 1050
articles upstream, but the newest article for the group is numbered 1100.
How does the downstream ?client? now know to request 100 new articles,
and which ones? The downstream clients should request articles 1001 to
1100.
My concern is that the check for new articles (above) will see a *total*
of 1050 articles, conclude there are 50 new articles.
Granted, I need to test that in Java, just not quite sure how to proceed
with that testing. (I know this is verging more in Java and away from
NNTP.)
Are my concerns valid? Hopefully that was at least readable.
thanks,
Thufir
Technical Details
Message-ID:
<7186v9-6i2.ln1@dur.bounceme.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.szaf.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!thufir.eternal-september.org!.POSTED!not-for-mailReferences:
<j204v9-5j2.ln1@dur.bounceme.net> <kfpn81$8em$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <7186v9-6i2.ln1@dur.bounceme.net> Subject: Re: NNTP API (Java) Date: Sat, 16 Feb 2013 21:56:23 -0800 From: Thufir Hawat <hawat.thufir@gmail.com> References: <j204v9-5j2.ln1@dur.bounceme.net> <kfpn81$8em$1@dont-email.me> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!news.szaf.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!thufir.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 47 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: thufir.eternal-september.org; posting-host="a6b6f25e9fc8f470090c619c4a0b5a51"; logging-data="25317"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+InulYKUMbTfJMdHb7iWGL" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:TKqFByfIIE4LgM1RH7hxUThP9WY= X-Original-Bytes: 3065