🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Craig Werner Thu, 11 Sep 1997 00:00
Question on .nn/LAST File
#8757
Author: Craig Werner
Date: Thu, 11 Sep 1997 00:00
12 lines
806 bytes
Hello, everyone.

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?

Thanks for all help.

Craig Werner <werner@world.std.com>

Re: Question on .nn/LAST File
#8756
Author: Sven Guckes
Date: Thu, 11 Sep 1997 00:00
12 lines
1091 bytes
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?

Sven

Re: Question on .nn/LAST File
#8760
Author: 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

Re: Question on .nn/LAST File
#8761
Author: Craig Werner
Date: Sat, 13 Sep 1997 00:00
21 lines
1656 bytes
mepstein@staff.uiuc.edu (Milt Epstein) writes:
>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.

Milt, my setting for "new-group-action" is the default, 3.  Although
deleting the .nn/LAST file has never caused nn (in my memory, at least) to
be fooled into thinking old newsgroups are new, I have recently taken to
keeping the "LAST" file in the belief that it seldom hurts to store time
stamp information.  :-)

Craig Werner <werner@world.std.com>

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