Article View: news.software.readers
Article #770rn scans the whole file.
From: Dale L. Wiles
Date: Thu, 24 Oct 1991 18:59
Date: Thu, 24 Oct 1991 18:59
52 lines
3244 bytes
3244 bytes
I posted about this problem a few weeks ago, and I got some work arounds from Bill Bogstad, and David Blackman (thanks!) but I wanted to wrassle the problem to the ground and find out what was causing it. The following stream of conscience is what I've figured out. (Note, I'm not sending this as a bug report, because it seems to be doing it on purpose. If they're a reason for it's to act like this, I'd appreciate knowing.) Disclaimer: I could be full of it. First, if FASTNEW isn't defined in common.h, then you have to have all the groups you don't want to read unsubscribed in your .newsrc. If FASTNEW is defined, rn checks the length of the active file against the length of the file from your last read. If the length has changed, then the file pointer is set to the new part of the file, and newlist is called. If newlist fails, then the entire active file is checked. (Like it is when FASTNEW isn't defined.) newlist grabs each new line in the active file, and checks the creation date against the last time that you read your news. If any group fails, then its assumed that something got screwed around with and the entire active file is scanned. There in lies the rub. "birthof" is the function called to figure out the creation time. In server mode, it takes the file name, calls nntp with the "group" command, and if the group name is valid, and has some articles in it, then the current time is returned (success), else return 0 (fail, make Dale unsubscribe from all thoes nasty groups.) My question is, why does it fail if they're no articles in the news group? (Is this supposed to be an impossable case?) I've had a couple of recent times where a new group appears (rec.video.releases and alt.fan.tna) and had no articles in it by the time I've got around to reading news. Is something wrong on my end, or is rn jumping to conclusions? Can you have a time where the nntp "group" returns valid data, and its still a bogus group? If not, I think that nntp returning an ok should be enough validation for rn. Feel free to fill me in, or correct me with out mercy if I've gotten it wrong. (Like you wouldn't if I didn't ask!) Techs: I'm using rn 4.4 in rrn mode: @(#)$Id: rn.c,v 4.4 1991/09/09 20:27:37 sob Exp sob $ Pathlevel 0 on a sun4 SunOS Release 4.1 Dale Wiles, who's also in server mode. -- Reply to: wiles@ultra.kodak.com Disclaimer: I'm just a Temp so it's not Kodak's problem.
Technical Details
Message-ID:
<1991Oct24.185950.29038@kodak.kodak.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!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das.harvard.edu!spdcc!dirtydog.ima.isc.com!ispd-newsserver!kodak!ultra!wilesShow Full Headers
Complete Article Headers
Message-ID: <1991Oct24.185950.29038@kodak.kodak.com> Subject: rn scans the whole file. Date: Thu, 24 Oct 1991 18:59:50 +0000 From: wiles@ultra.Kodak.COM (Dale L. Wiles) 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!gmdzi!zeus.ieee.org!dorm.rutgers.edu!rutgers!cs.utexas.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!ogicse!das.harvard.edu!spdcc!dirtydog.ima.isc.com!ispd-newsserver!kodak!ultra!wiles Newsgroups: news.software.readers Sender: news@kodak.kodak.com Organization: Eastman Kodak Co., Rochester, NY Lines: 52