🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Rich Salz Tue, 21 Dec 1993 17:48
Re: Archiving news on innd
#2289
Author: Rich Salz
Date: Tue, 21 Dec 1993 17:48
17 lines
1515 bytes
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.

	/r$

Re: Archiving news on innd
#2293
Author: 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

Re: Archiving news on innd
#2296
Author: Rich Salz
Date: Thu, 23 Dec 1993 20:51
37 lines
2578 bytes
In <2f7ukcINNi2q@ftp.uu.net> jml4@cus.cam.ac.uk (John Line) writes:
>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?

No, I will not be adding archiving to expire.

Please note that you can direct archive to use (hard and soft, if you've got
them) links so that the disk space waste isn't a factor.  I think it's a
non-issue, anyway, since if you're concerned about the amount space a
temporary already-archived copy takes up in your spool directory, then you're
running so tight that you can't afford much news anyway.  The fact that
archive means cancelled articles get archived is a benefit, I think.

At any rate, you don't have to run archive as a channel feed.  You can
run it as a file feed (or multiple file feeds, matching your expire.ctl
rules) and run archive just before news.daily.  This will come VERY close
to giving you C-news-like behavior in all regards.

>The sort of approach I'm thinking of is to provide a standard way to get a
>command run, when delayrm is used

The best way to do this is to replace "expirerm" with your own wrapper
script that does what you want.

>[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.

No -- suppose the filesystem where expire is writing its -z file is full?

In standard news system, it is VERY uncommon for nothing to be expired,
so INN is doing the right thing about warning you when that happens.
	/r$

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