Article View: news.software.readers
Article #150555Re: Download headers within a date range
From: Murray Peterson
Date: Wed, 23 Jun 2004 17:40
Date: Wed, 23 Jun 2004 17:40
30 lines
2430 bytes
2430 bytes
jakelundy@hotmail.com (Jake) wrote in news:b5178b80.0406230617.31d5ec93@posting.google.com: > You are right about the sparsity of the message numbers. A workaround > is to use the STAT and LAST/NEXT nntp commands. If I want to find the > message number half way between 1 and 10, I'd STAT for message 5, and > if the STAT fails, I do a LAST to find the previous message number. That won't work as you might expect. If you get "unlucky" and hit a non- existent message number, the STAT command will not set the "current article pointer" at all, and therefore the LAST command will fail with a "No previous article" error. At least, this is how my server behaves. > I am dealing with groups with more than a million messages so it would > not be faster to download all headers. Does your server support XHDR for the date field? If so, that may be the best solution. > An assumption I made was that messages are ordered by date. So > message number 10 should have an earlier date than message number 11. > I don't know if this is true. It's not true for all servers; some of them allocate older message numbers for newer articles. -- Murray Peterson Email: murray_peterson@shaw.ca (remove underscore) URL: http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID:
<Xns951177D7ED5BEfarkle@24.71.223.159>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!news.usenetserver.com!pd7cy2so!shaw.ca!pd7tw2no.POSTED!53ab2750!not-for-mailReferences:
<b5178b80.0406221912.5a02c93f@posting.google.com> <Xns9510DD9025CA0farkle@24.71.223.159> <b5178b80.0406230617.31d5ec93@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns951177D7ED5BEfarkle@24.71.223.159> Subject: Re: Download headers within a date range Date: Wed, 23 Jun 2004 17:40:27 GMT From: Murray Peterson <mwp@home.com.invalid> References: <b5178b80.0406221912.5a02c93f@posting.google.com> <Xns9510DD9025CA0farkle@24.71.223.159> <b5178b80.0406230617.31d5ec93@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!news.usenetserver.com!pd7cy2so!shaw.ca!pd7tw2no.POSTED!53ab2750!not-for-mail X-Trace-PostClient-IP: 68.145.154.18 Newsgroups: news.software.readers Organization: None User-Agent: Xnews/06.02.16 Lines: 30 NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: pd7tw2no 1088012427 24.71.223.147 (Wed, 23 Jun 2004 11:40:27 MDT) NNTP-Posting-Date: Wed, 23 Jun 2004 11:40:27 MDT