Article View: news.software.nntp
Article #2245How to get accurate counts of messages in a newsgroup ... ?
From: David Herron
Date: Wed, 17 Nov 1993 18:16
Date: Wed, 17 Nov 1993 18:16
41 lines
2693 bytes
2693 bytes
Greetings! I am facing down a problem to which there doesn't seem to be an answer. The problem is about getting a count of the messages in a newsgroup which the user has not read. Rather.. getting this count while not spending inordinate amounts of time doing so. The GROUP command tells us an estimate of the number of articles and the range of articles existant. However there frequently are `holes' (missing messages) in that range and we have no idea where the holes are. We keep a list of articles the user has already read. Running through this list and subtracting those from the count given us from the GROUP command frequently results in a negative number of messages, even though there are messages to be read in the group. This is caused by the `holes'. If a hole exists where the user has already read a message the count gets thrown off. Since none of the NNTP extensions have been collected into a new RFC ( documented that is) I can only go by the single solitary extension supported by my friendly neighborhood NNTP server. Namely: XHDR. Sending an XHDR command like XHDR "" first-last returns the list of existant articles while sending the least number of bytes over the wire. Unfortunately this takes a significant amount of time to happen. Partly in the server since it does a longish pause before sending the results back, and partly because it's a round trip to the server. I've implemented this XHDR based solution and found that it gives accurate counts but that it's too slow to be livable. The guess is that any other solution involving round trips to the server will be too slow. What I am curious about is other peoples solutions to this problem. <- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home) <- <- There are only two pains- <- The pain of discipline or the pain of regret.
Technical Details
Message-ID:
<1993Nov17.181701.12747@twg.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!eco.twg.com!twg.com!newsShow Full Headers
Complete Article Headers
Message-ID: <1993Nov17.181701.12747@twg.com> Subject: How to get accurate counts of messages in a newsgroup ... ? Date: Wed, 17 Nov 1993 18:16:39 GMT From: "David Herron" <david@twg.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!eco.twg.com!twg.com!news Newsgroups: news.software.readers,news.software.nntp Sensitivity: Personal Encoding: 36 TEXT , 4 TEXT Sender: news@twg.com (USENET News System) Conversion: Prohibited Organization: The Wollongong Group, Inc., Palo Alto, CA Conversion-With-Loss: Prohibited Lines: 41