🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2200

Re: Storing .newsrc and kill files at the server

#2200
From: 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.
Technical Details
Message-ID: <291lh5$j9@worf.Warren.MENTORG.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!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!math.fu-berlin.de!nigel.msen.com!yale.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.mentorg.com!sdl!not-for-mail
References: <CEG1Gw.4GM.3@cs.cmu.edu> <291gj2INN963@rodan.UU.NET>

Show Full Headers
Complete Article Headers
Message-ID: <291lh5$j9@worf.Warren.MENTORG.COM>
Subject: Re: Storing .newsrc and kill files at the server
Date: Thu, 07 Oct 1993 18:01:09 +0000
From: tal@Warren.MENTORG.COM (Tom Limoncelli)
References: <CEG1Gw.4GM.3@cs.cmu.edu> <291gj2INN963@rodan.UU.NET>
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!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!math.fu-berlin.de!nigel.msen.com!yale.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!news.mentorg.com!sdl!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: Mentor Graphics -- IC Group, Warren, NJ, USA
Lines: 50
Distribution: inet
NNTP-Posting-Host: worf.warren.mentorg.com