🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Dale L. Wiles Thu, 24 Oct 1991 18:59
rn scans the whole file.
#770
Author: Dale L. Wiles
Date: Thu, 24 Oct 1991 18:59
52 lines
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.
better new-group code coming soon (was: rn scans the whole file.)
#772
Author: Wayne Davison
Date: Thu, 24 Oct 1991 21:59
28 lines
2254 bytes
Dale L. Wiles (wiles@ultra.Kodak.COM) writes:
>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.

It's not actually required that you keep all the group names around for the
non-NNTP version, but it does make the wait while checking for new groups
tolerable, since it doesn't have to call birthof() for all the missing group
names.  It also prevents you from getting repeats of certain troublesome
groups that don't have spool directories (if you have any).

The entire newgroup process is in need of a reworking, so that is what I'm
in the final stages of doing for trn 2.0.  I've got to tweak it a bit more
and let my beta team beat on it, and then I'll send the diffs off to Stan
for possible inclusion into the rn 4.4 code.

For the new new-group strategy to work, you need to maintain a file called
"active.times".  While C News systems do this for you automatically, other
systems can use either the new mthreads or a program I've written called
acttimes to manually maintain the active.times file.  Having your server
run acttimes rather than mkgrdates will enable [t]rrn to use the NEWGROUPS
call in NNTP and get an accurate report of new groups.  With this in place
you don't need to keep a full .newsrc hanging around or be subjected to
long, agonizing waits.  Of course, the old method will still be available
as a fall-back for sites without an active.times file.
-- 
 \  /| / /|\/ /| /(_)     Wayne Davison
(_)/ |/ /\|/ / |/  \      davison@borland.com
   (W   A  Y   N   e)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads