Article View: news.software.misc
Article #2348Re: which header keeps serial numbers ?
From: David M. Chess
Date: Tue, 21 Nov 2000 00:00
Date: Tue, 21 Nov 2000 00:00
34 lines
1988 bytes
1988 bytes
You can keep track of message-ids; that makes the database server- independant, but you'll have to keep a list of every message id you've ever seen (modulo expiration and so on), and when you go to retrieve new ones you'll have no easy way of asking the server for just the unseen ones. Or you can keep track of the article number, which is server specific but also monotonically increasing, so you only need to keep track of one number per newsgroup, and you can use "next"s to get only the new ones. Unsurprisingly, most news clients use the latter... *8) (If your server supports the NEWNEWS verb, you can also keep track of the time you last asked for news and do it that way. I used that method in a client for awhile, but then they recompiled the server I was using not to support NEWNEWS, and I decided that article numbers are neater anyway.) Article numbers aren't (necessarily) anywhere in the header, of course. But if you know that the last article you read in alt.random.group was 142, you can do group alt.random.group article 142 next article next article ... or whatever, until there aren't anymore. DC
Technical Details
Message-ID:
<3A1A8744.A608406C@us.ibm.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<3a19887f.5090825@news.alt.net>Show Full Headers
Complete Article Headers
Message-ID: <3A1A8744.A608406C@us.ibm.com> Subject: Re: which header keeps serial numbers ? Date: Tue, 21 Nov 2000 00:00:00 +0000 From: "David M. Chess" <chess@us.ibm.com> References: <3a19887f.5090825@news.alt.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.mbox.zip!not-for-mail X-Deja-AN: 696177396 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@btv.ibm.com X-Trace: news.btv.ibm.com 974817282 21594 9.2.26.75 (21 Nov 2000 14:34:42 GMT) Organization: IBM Watson Research Mime-Version: 1.0 NNTP-Posting-Date: 21 Nov 2000 14:34:42 GMT Newsgroups: news.software.readers,news.software.nntp,news.software.misc