🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #2293

Re: Archiving news on innd

#2293
From: John Line
Date: Tue, 21 Dec 1993 22:50
64 lines
4528 bytes
In article <2f7ctlINN29u@ftp.UU.NET> rsalz@uunet.uu.net (Rich Salz) writes:
>In <2f5l77INN368@ftp.uu.net> sajjad@milhouse.oec.com (Sajjad Ahmed) writes:
>>  The question I have is how to configure innd to automatically
>>archive articles in newsgroups that are older than a certain number of days.
>
>Use the "archive" program to save articles.  Read the manpage carefully,
>some people get confused; it's a little more clear for 1.5.  Note that
>unlike B2.11 or C News, INN's expire does not save articles.
>
>>Further, how do you set the time limit for an article to remain on the news
>>server before it is erased and archived?
>
>Removing articles is done by expire, which reads the expire.ctl file.  There
>are manpages for both of these in the doc directory of the INN distribution.

This prompts the question: is there any chance of INN 1.5 including an
official way (as opposed to hacking news.daily, which is the obvious "quick
fix") to allow C-news-like expiry, where articles are archived just before
they are deleted?

This *isn't* the same as (for example) feeding articles to the archive
program as they arrive, since (a) it avoids articles occupying double the
space (copy in spool, and copy in archive directory) until the spool copy
expires (NB if on the same filesystem, the archive copy could be "the same
file" via a hard link, but not if on a different filesystem), and (b)
archiving at the time the article arrives will result in the archive copy not
being deleted if the article is cancelled (though I accept either behaviour
might be wanted, in different situations!).

The sort of approach I'm thinking of is to provide a standard way to get a
command run, when delayrm is used (thus creating a file listing articles
about to be deleted), after the sorted list file is created and before fastrm
is called to delete them. The current facility to run a program or list of
programs before expiry doesn't help, without writing something which would do
much of the work of expire, to determine which articles are about to expire,
and then archive them. Providing a way to run something once expire.rm exists
seems to be what's needed.

I suppose this would need (slightly more tricky - maybe local hacking is the
only workable solution...) the same command to be run (with an option to
indicate it may already have seen some of the files?) when the system crashes
during expiry, and rc.news finishes off a delayrm-style expiry run by running
fastrm to finish off deleting the list of files. [On which point - I was very
impressed inn startup finished the job, after my server crashed during a
delayrm'd expiry run.] Perhaps a config.data entry to define the commands to
run in both these cases (normal archiving, and post-crash recovery) would be
the clean solution?

[On a related point - there seems to be a bug/misfeature in news.daily, such
that if no articles are expired, and delayrm is in effect, it treats the
empty file expire.rm file as an error, rather than simply deleting it. While
I can see why fastrm itself needs to treat an empty input stream as an error
(as described in the man page), I think news.daily should check beforehand
and not bother running fastrm if no files need to be deleted. Since it
creates a file, rather than piping a file list straight into fastrm, it
should be possible to do that safely. Or am I missing a subtlety or three?]

                                John Line
-- 
John Line - Cambridge University Computing Service, Computer Laboratory,
            New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk  JANET: jml4@uk.ac.cam.cus  Phone: +44 223 334708

Technical Details
Message-ID: <2f7ukcINNi2q@ftp.UU.NET>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!not-for-mail
References: <2f5l77INN368@ftp.uu.net> <2f7ctlINN29u@ftp.UU.NET>

Show Full Headers
Complete Article Headers
Message-ID: <2f7ukcINNi2q@ftp.UU.NET>
Subject: Re: Archiving news on innd
Date: Tue, 21 Dec 1993 22:50:52 +0000
From: jml4@cus.cam.ac.uk (John Line)
References: <2f5l77INN368@ftp.uu.net> <2f7ctlINN29u@ftp.UU.NET>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.technical.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!not-for-mail
Newsgroups: news.software.nntp,news.software.b,news.admin.technical
Organization: Computing Service, Cambridge University, England
Lines: 63
Sender: zorch@ftp.UU.NET
Approved: zorch@uunet.UU.NET
Distribution: world
NNTP-Posting-Host: ftp.uu.net