Article View: news.software.nntp
Article #59828Re: News::NNTPClient module
From: Jøhnny Fävòrítê (it means "Japan...
Date: Sun, 04 Aug 2002 23:47
Date: Sun, 04 Aug 2002 23:47
41 lines
2937 bytes
2937 bytes
Mike Mimic wrote: > So, this function returns first and last article numbers. > But do all messages between those numbers exist? Nope. There will be holes. > If so, how can a client knows without looking for message for > every article number? You can't. Another value you get back from the GROUP command is an estimate of the total number of messages in the group, which is a help, but to know if any particular message number exists, you just have to ask for it and find out. That shouldn't be a problem, though. If you want, say, the 50 most recent messages and the range is 100-5000, you ask for 5000, 4999, 4998, and so on, skipping over the "holes" as you encounter them, until you've downloaded 50 messages. > I found out that there is "listgroup" function, which return list > of those. Should I call this or will group function be enough. It probably performs the LIST command, which tells you the newsgroups that exist on the server. You need to know which groups exist before you know which ones you can plug into the GROUP command. A word of warning, though: in my experience the list of groups you get back is often a *mess*. It will contain a few entries that are not actually newsgroups, it may have duplicates, and it won't be in alphabetical order. So it requires substantial clean-up. > And another question. How clients determine which articles > belong to the same thread? By subject? No, by examining the References: header of all articles. There are a few others you might examine but that's the big one. Subject: should only be used as a last resort. Personally in my newsreader I never use it at all because it's prone to failure. I'd rather err on the side of not having two articles in the same thread that should be rather than possibly threading together two articles that shouldn't be.
Technical Details
Message-ID:
<PM0003A76B71DEB458@minion.nashville.comcast.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1References:
<3D4DB7EF.4030204@yahoo.com>Show Full Headers
Complete Article Headers
Message-ID: <PM0003A76B71DEB458@minion.nashville.comcast.net> Subject: Re: News::NNTPClient module Date: Sun, 4 Aug 2002 18:47:23 -0500 From: Jøhnny Fävòrítê (it means "Japanese Sandman") <this.is@totally.fake.com> References: <3D4DB7EF.4030204@yahoo.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!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 Newsgroups: news.software.nntp Organization: Hell, Inc. Lines: 40 NNTP-Posting-Host: p-187.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Pineapple News 0.9.6 [PLAID BETA], BeOS (Intel) 5.0.3 X-Program-URL: http://www.beosdevelopers.org/brunsona/pineapplenews.html X-Registered-To: Arva Bigboote