🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Karl_Kleinpaste Tue, 05 Oct 1993 22:32
Storing .newsrc and kill files at the server
#2196
Author: Karl_Kleinpaste
Date: Tue, 05 Oct 1993 22:32
29 lines
2106 bytes
I've been contemplating what to do about .newsrc and kill files in a
high-volume reading environment I'm designing.  The situation is
somewhat odd in that the users do not in general have much (any?  I
don't even know) local disc space on the system from which they read
news.

Since the server is sitting out there with a monstrous blortful of
disc anyway, it seems to make sense that the server host be a logical
place on which to store these sorts of user-specific files.  I'm using
INN and am contemplating making some small (philosophically) changes
to nnrpd:
        2 (possibly 3) additions to the LIST command:
        LIST NEWSRC
        LIST KILL
        and a new STORE command to match this, for creating these files:
        STORE NEWSRC
        STORE KILL
I will be building a reader with user authentication to nnrpd, so I
can create, e.g., a quasi-$HOME for each user on the server in some
convenient place, in which to store these items.  The reader is
entirely custom, I can do with it what I wish.

This seems so obvious an extension that I tend to believe that someone
else has probably thought of it before.  It provides the benefit that
the user can't inadvertently do damage to these files by editing them
directly.  On the other hand, that loss of access implies a loss of
control.

Opinion?
Re: Storing .newsrc and kill files at the server
#2197
Author: John Kennedy
Date: Wed, 06 Oct 1993 00:56
19 lines
1767 bytes
In article <CEG1Gw.4GM.3@cs.cmu.edu>,  <Karl_Kleinpaste@cs.cmu.edu> wrote:

-->  ...  It provides the benefit that the user can't inadvertently do damage
-->  to these files by editing them directly.  On the other hand, that loss
-->  of access implies a loss of control.

  Yes.  In particular, TRN/RN and friends (over time) can make a .newsrc
file that they can't parse any more and die (probably too long of a line
for a newsgroup, or some permutation of data).  The usual solution is to
edit it and perform the equivalent of a "catch-up" (and urge the people
to do this themselves from time to time).

  A small bug-free external program to do basic tasks on the remote .newsrc
file would be necessary.  If all it does is allow you to upload and download
the .newsrc file from the server, that would be enough.  (You would probably
be insane to make something without this minimum of backward compatibility.)

-- 
Windows/NT - From the people who brought you EDLIN
Re: Storing .newsrc and kill files at the server
#2208
Author: Rich Salz
Date: Thu, 07 Oct 1993 16:36
13 lines
1175 bytes
Given your assumptions (server has big disk and readers authenticate) seems
like an obvious way to go.   However you probably want three basic
operations -- create, fetch, delete -- on two files -- .newsrc, killfile.
Are killfiles per-group?

Perhaps doing something like:
	KILLFILE LIST <newsgroup>
	KILLFILE DELETE <newsgroup>
	KILLFILE CREATE <newsgroup>
might make more sense.  This gives you the capability of doing
	KILLFILE APPLY
later on...
	/r$
Re: Storing .newsrc and kill files at the server
#2200
Author: Tom Limoncelli
Date: Thu, 07 Oct 1993 18:01
50 lines
2808 bytes
In <291gj2INN963@rodan.UU.NET> rsalz@rodan.UU.NET (Rich Salz) writes:

>Perhaps doing something like:
>	KILLFILE LIST <newsgroup>
>	KILLFILE DELETE <newsgroup>
>	KILLFILE CREATE <newsgroup>
>might make more sense.  This gives you the capability of doing
>	KILLFILE APPLY

Since you are really talking about managing a user's 'account',
maybe you want to make it all under one command, and generalize
it to be any file name (of course, the server should reject anything
but "newsrc" and "killfile".

ACCOUNT FILE LIST filename
ACCOUNT FILE CREATE filename
ACCOUNT FILE DELETE filename

Creating a standard for kill files... YOU have guts :-).  Are
you going to support NN-style or TRN-style kills?

Another issue you want to consider is quotas.  Someone could
flood your disks with bogus kill and newsrc data.

For newsrc, you might want to silently delete lines refering to
newsgroups that aren't in your active file, and you might want to do a
"nntidy -ciu" equivalent (i.e. if you only have articles numbered from
1000-2000, reduce 1,500,505,510,1000,1300,1800-2400 to
1000,1300,1800-2000).  This gives an upper limit to the size of
a newsrc file.

I don't know how you can algorithmicly limit the killfile.  You might
just have to compile in some kind of limit.

Oh, if you are going to write a general "FILE" command, why not
do it right and have a /usr/lib/news/nntpfile.conf file that
has:
filename:flag:sizelimit
filename:flag:sizelimit
filename:flag:sizelimit

Flag can be "U" for unlimited, "RC" for "this is an newsrc, tidy it up"
and "Q" for "use the sizelimit to limit how big it can grow".

Tom

-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that  | Disclaimer:  I do not
they have new email.  I run '/bin/true'".   | speak for Mentor Graphics.
Re: Storing .newsrc and kill files at the server
#2201
Author: Karl_Kleinpaste
Date: Thu, 07 Oct 1993 18:05
17 lines
1615 bytes
rsalz@rodan.uu.net writes:
   Perhaps doing something like:
	   KILLFILE LIST <newsgroup>
	   KILLFILE DELETE <newsgroup>
	   KILLFILE CREATE <newsgroup>
   might make more sense.  This gives you the capability of doing
	   KILLFILE APPLY
   later on...

That's the 3rd suggestion I've had for server-based kill application.
But I resist that for two reasons.  One is that resource consumption
to do kills just isn't that high -- whether a few extra headers fly
over the network won't affect much of anything.  The second reason is
that I view the server as a repository, not an active participant in
the process; it's the application's problem to put to use the
information held by the server, whether that's articles, a suggested
subscription list, or kill files.
Re: Storing .newsrc and kill files at the server
#2203
Author: Ralph Sobek
Date: Mon, 11 Oct 1993 05:06
23 lines
2010 bytes
>>>>> On Thu, 7 Oct 1993 18:05:27 GMT, Karl_Kleinpaste@cs.cmu.edu said:

Karl> That's the 3rd suggestion I've had for server-based kill application.
Karl> But I resist that for two reasons.  One is that resource consumption
Karl> to do kills just isn't that high -- whether a few extra headers fly
Karl> over the network won't affect much of anything.

Even though your second comment seems reasonable to me, I batch run my
kill files every morning on the news server itself and the process
takes a _couple of hours_ on a SPARC 10 running INN 1.4 and myself
running emacs GNUS.

	My 2.3 cents worth.

--
Dr. Ralph P. Sobek		  Disclaimer: The above ruminations are my own.
Ralph.Sobek@cerfacs.fr			   Addresses are ordered by importance.
ralph@cerfacs.fr					If all else fails, try:
Telephone: (+33) 61-19-30-47			      sobek@eclair.Berkeley.EDU
FAX:	   (+33) 61-19-30-00
===============================================================================
The waves came in like arabian stallions gradually lapping into seahorses.
                                                         --  Pattie Smith
Re: Storing .newsrc and kill files at the server
#2205
Author: Tom Limoncelli
Date: Mon, 11 Oct 1993 14:25
31 lines
2313 bytes
In <RALPH.93Oct11050620@hal.cerfacs.fr> ralph@cerfacs.fr (Ralph Sobek) writes:

>>>>>> On Thu, 7 Oct 1993 18:05:27 GMT, Karl_Kleinpaste@cs.cmu.edu said:

>Karl> That's the 3rd suggestion I've had for server-based kill application.
>Karl> But I resist that for two reasons.  One is that resource consumption
>Karl> to do kills just isn't that high -- whether a few extra headers fly
>Karl> over the network won't affect much of anything.

>Even though your second comment seems reasonable to me, I batch run my
>kill files every morning on the news server itself and the process
>takes a _couple of hours_ on a SPARC 10 running INN 1.4 and myself
>running emacs GNUS.

I think this shows that GNUS is just plain slow.  nn kills take almost
no time.  trn kills take IMHO too long.

With a NOV database, most header-kills should be almost instant, and
therefore should be done IMHO in real-time.  Kills based on the body of
the article don't make sense to me, but should be done in batch much
quicker than current software.

If you have 2-3 hours of killing each day, I would suggest you look at
your kill file to see what you can take out, and how many body-kills
you can make into header-kills.

Tom
-- 
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that  | Disclaimer:  I do not
they have new email.  I run '/bin/true'".   | speak for Mentor Graphics.
Re: Storing .newsrc and kill files at the server
#2207
Author: Karl_Kleinpaste
Date: Mon, 11 Oct 1993 16:52
9 lines
1317 bytes
ralph@cerfacs.fr writes:
   kill files every morning on the news server itself and the process
   takes a _couple of hours_ on a SPARC 10 running INN 1.4 and myself
   running emacs GNUS.

That's obscene.  I would suggest you go looking for what is wrong with
your news system or GNUS.  I have some fairly hefty kill files myself,
but I have never had kills take more than a couple seconds on group
entry.  Anything needing _hours_ to execute kills is deeply broken.
Re: Storing .newsrc and kill files at the server
#2209
Author: Kari Sutela
Date: Mon, 11 Oct 1993 17:48
12 lines
1274 bytes
ralph@cerfacs.fr (Ralph Sobek) writes:

>kill files every morning on the news server itself and the process
>takes a _couple of hours_ on a SPARC 10 running INN 1.4 and myself
>running emacs GNUS.

And you still have an account on the news server?  You have a very
patient sysadmin :-)  I myself have seriously considered removing
gnus on my site because it's such a resource hog. 

-- 
Kari Sutela	sutela@utu.fi
Re: Storing .newsrc and kill files at the server
#2210
Author: Russell Schulz
Date: Mon, 11 Oct 1993 18:44
22 lines
2045 bytes
Karl_Kleinpaste@cs.cmu.edu writes:

[excess crossposting for intro to a.u.offline-reader]

> I've been contemplating what to do about .newsrc and kill files in a
> high-volume reading environment I'm designing.  The situation is
> somewhat odd in that the users do not in general have much (any?  I
> don't even know) local disc space on the system from which they read
> news.

in alt.usenet.offline-reader, this has been discussed also -- the
situation is similar, except there they want to process kill files
and the like on the server itself, before sending the articles over
(as you would in your normal feed).  it has been suggested extending
this to feeds as well -- instead of batching up a 200k article, check
if it would just be killed first.  (there are provisions with C News
to do this for one site, say z*ma, but not headers other than Path)

summary:  I see no problem with it.  if all they'll do is news, then
centering the disk administration around news makes sense.
-- 
Russell Schulz  russell@alpha3.ersys.edmonton.ab.ca  ersys!rschulz  Shad 86c
Re: Storing .newsrc and kill files at the server
#2211
Author: H. Peter Anvin N9ITP
Date: Tue, 12 Oct 1993 02:11
17 lines
1522 bytes
In article <291gj2INN963@rodan.uu.net> of news.software.nntp,
  rsalz@rodan.UU.NET (Rich Salz) writes:
> Given your assumptions (server has big disk and readers authenticate) seems
> like an obvious way to go.   However you probably want three basic
> operations -- create, fetch, delete -- on two files -- .newsrc, killfile.
> Are killfiles per-group?

I *like* this idea.

Killfiles are both per-group and global.

	/hpa
-- 
INTERNET: hpa@nwu.edu         FINGER/TALK: hpa@ahab.eecs.nwu.edu
IBM MAIL: I036073 at IBMMAIL  NeXTMAIL:    hpa@speedy.acns.nwu.edu
ANM�RKNING: Heja Sverige friskt hum�r!  EG v�ntar utanf�r!
Windows NT: The best vaporware currently unavailable!
Re: Storing .newsrc and kill files at the server
#2212
Author: H. Peter Anvin N9ITP
Date: Tue, 12 Oct 1993 02:18
28 lines
2378 bytes
In article <CEJE58.Ixv.3@cs.cmu.edu> of news.software.nntp,
  Karl_Kleinpaste@cs.cmu.edu writes:
>
> That's the 3rd suggestion I've had for server-based kill application.
> But I resist that for two reasons.  One is that resource consumption
> to do kills just isn't that high -- whether a few extra headers fly
> over the network won't affect much of anything.  The second reason is
> that I view the server as a repository, not an active participant in
> the process; it's the application's problem to put to use the
> information held by the server, whether that's articles, a suggested
> subscription list, or kill files.

One thing, though, is that people often want to read news on different
machines.  The only things that keeps me from using NewsGrazer on a
NeXT, Trumpet on a PC, NewsWatcher on a Mac and God-knows-what
whereever, are those damn .newsrc and KILL files.  There might,
however, be a case for them not to be stored on the server itself;
maybe something like a CFXP (Client File Exchange Protocol) in
addition to an NNTP would let the user leave eir .newsrc/KILL files on
eir "home machine" and still let them access it remote.

setenv NNTPSERVER news.eecs.nwu.edu
setenv CFXPSERVER hpa@ahab.eecs.nwu.edu:CFXPPASSWORD
-- 
INTERNET: hpa@nwu.edu         FINGER/TALK: hpa@ahab.eecs.nwu.edu
IBM MAIL: I036073 at IBMMAIL  NeXTMAIL:    hpa@speedy.acns.nwu.edu
ANM�RKNING: Heja Sverige friskt hum�r!  EG v�ntar utanf�r!
Windows NT: The best vaporware currently unavailable!
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