🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8760

Re: Question on .nn/LAST File

#8760
From: Milt Epstein
Date: Sat, 13 Sep 1997 00:00
75 lines
4104 bytes
guckes@math.fu-berlin.de (Sven Guckes) writes:

>werner@world.std.com (Craig Werner):
>> The nn manual says that the ".nn/LAST" file contains the "time stamp of
>> the last news group we have seen."  In which circumstances is it useful
>> to save this file?  It should be saved rather than deleted, correct?
>
>I suppose the time stamp in the LAST file can speed up the search for new
>articles in the same group.  Anyone know where it gets used in the code?

I don't know specifically how it's used in the code, but, depending on
your setting of new-group-action, LAST may be used to determine what
newsgroups are new.  It has to do with dealing with new newsgroups,
not which newsgroup you last read or which articles are new (remember,
new newsgroups are created all the time.)

I've appended the description of new-group-action from the man page
below.  Basically, nn needs some way of determining whether a group is
new.  One way is by looking at whether it's in your .newsrc file.
However, this would require keeping every single group in your
.newsrc, whether you are subscribed to it or not (unless you want to
ignore new groups).  The alternative involves somehow knowing what
groups are new without keeping track of all groups that have come
along.  One simple, fairly accurate way to do this is to keep track of
the last new group that came along (and when).  This is exactly what
the LAST file is for.

If you choose one of the values of new-group-action that depends on
this (e.g. 3, 4, or 5), I would say that it is very important that you
keep this file around.  In fact, it might be that nn won't even create
this file if you are not using one of these settings (the default is
3).  I don't know exactly what would happen if you deleted it, but nn
could very well assume that every group not in your .newsrc is new,
and do something like automatically add them to your .newsrc, or even
worse, query you for each one about whether or not you want to
subscribe to it.  This would not be pleasant.

Hope this helps.

      new-group-action action  (integer, default 3)
	   This variable controls how new groups are treated by nn.  It is
	   an integer variable, and the following values can be used.  Some
	   of these actions (marked with an *) will only work when keep-
	   unsubscribed is set, since the presence of a group in .newsrc is
	   the only way to recognize it as an old group:

	   0)  Ignore groups which are not in .newsrc.	This will obviously
	   include new groups.

	   1*)	Groups not in .newsrc are considered to be new, and are
	   inserted at the beginning of the .newsrc file.

	   2*)	Groups not in .newsrc are considered to be new, and are
	   appended to the end of the .newsrc file.

	   3)  New groups are recognized via a time-stamp saved in the file
	   .nn/LAST and in the database, i.e. it is not dependent on the
	   groups currently in .newsrc.	 The new groups are automatically
	   appended to .newsrc with subscription.  Old groups not present in
	   .newsrc will be considered to be unsubscribed.

	   4)  As 3, but the user is asked to confirm that the new group
	   should be appended to .newsrc.  If rejected, the group will not
	   be appended to .newsrc, and thus be regarded as unsubscribed.

	   5)  As 4, except that the information is stored in a format
	   compatible with the rn news reader (.rnlast).  This needs to be
	   tested!

--
Milt Epstein
mepstein@uiuc.edu

Technical Details
Message-ID: <5vclt5$gne$1@vixen.cso.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <EGCAsv.r2@world.std.com> <slrn61frqs.b8d.guckes@banach.math.fu-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <5vclt5$gne$1@vixen.cso.uiuc.edu>
Subject: Re: Question on .nn/LAST File
Date: Sat, 13 Sep 1997 00:00:00 +0000
From: mepstein@staff.uiuc.edu (Milt Epstein)
References: <EGCAsv.r2@world.std.com> <slrn61frqs.b8d.guckes@banach.math.fu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 272027192
Organization: University of Illinois at Urbana-Champaign
Newsgroups: news.software.nn