Article View: news.software.nntp
Article #62272Re: Group list, please someone explain...
From: Bert Hyman
Date: Tue, 10 Dec 2002 14:27
Date: Tue, 10 Dec 2002 14:27
37 lines
2483 bytes
2483 bytes
skozyuk[NO@SPAM]mazzellalifting.com (Slavic Kozyuk) wrote in news:pNlJ9.313732$f9.188723@FE06: > Would it be valid to estimate message count by ><LAST> - <FIRST> = [MSG. Count] > > If [MSG. Count] <= 0 Then > [MSG. Count] = 0 > End if The calculation would be "(last-first)+1", but don't get the information from a LIST command. It's a BAD idea to retrieve the full newsgroup list unless the user explicitly asks for it. The list can be tens of thousands of lines long, and on a dialup connection retrieving it can be murder. > Is this how NNTP client such as Outlook Express calculates number > of posts in newsgroup before d/l headers? They probably use the GROUP command which returns 211 <number> <first> <last> <groupname> where <number> is the server's estimate of how many articles are present in the group. The <number> field may be more accurate than just subtracting first from last if the server keeps track of the number of article actually present in the newsgroup. Of course, you probably won't be retrieving ALL the headers from a newsgroup most of the time anyway, only the headers for articles that your user hasn't already seen. With cross-posts and all, figuring that out can be tricky, and knowing the total number of articles in the group won't be of much interest. -- Bert Hyman | St. Paul, MN | bert@visi.com
Technical Details
Message-ID:
<Xns92E0560E9EA0CVeebleFetzer@news.visi.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!bbnews1.unisys.com!si05!not-for-mailReferences:
<is7J9.3519$DJ4.366@fe03> <yl1y4qyjuk.fsf@windlord.stanford.edu> <pNlJ9.313732$f9.188723@FE06>Show Full Headers
Complete Article Headers
Message-ID: <Xns92E0560E9EA0CVeebleFetzer@news.visi.com> Subject: Re: Group list, please someone explain... Date: Tue, 10 Dec 2002 14:27:47 +0000 From: Bert Hyman <bert@visi.com> References: <is7J9.3519$DJ4.366@fe03> <yl1y4qyjuk.fsf@windlord.stanford.edu> <pNlJ9.313732$f9.188723@FE06> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!66.250.146.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!uunet!dca.uu.net!bbnews1.unisys.com!si05!not-for-mail Newsgroups: news.software.nntp Organization: None to speak of Lines: 36 NNTP-Posting-Host: rah1.rsvl.unisys.com X-Trace: si05.rsvl.unisys.com 1039530467 69786 192.61.221.113 (10 Dec 2002 14:27:47 GMT) X-Complaints-To: news@rsvl.unisys.com NNTP-Posting-Date: 10 Dec 2002 14:27:47 GMT User-Agent: Xnews/5.04.25