Article View: news.software.nntp
Article #30103Re: Expiring just one hierarchy
From: T. William Wells
Date: Tue, 28 Jul 1998 00:00
Date: Tue, 28 Jul 1998 00:00
29 lines
1413 bytes
1413 bytes
In article <6pkmoe$4j6$1@testinfo.uoguelph.ca>,
Steve Howie <showie@uoguelph.ca> wrote:
: Is there any way in INN 1.7.2 to just have expire look at one hierarchy?
: We're planning severe and frequent pruning of a hierarchy which will
: remain nameless (:-)) and want to know if there is a quick and dirty way
: to have it only process this one hierarchy rather than the entire spool
cd nameless-directory
rm *
Or, if that's too draconian, how about this:
cd nameless-directory
ls |
egrep '^[0-9]' |
tee /tmp/files |
sort -n |
tail -10 |
sort >/tmp/keep
comm -13 /tmp/keep /tmp/files |
xargs rm
(Written on the fly -- use at your own risk.)
The moral being that you can delete articles without using expire.
That's a normal event for the news system -- cancels just delete
the article without changing anything else.
Technical Details
Message-ID:
<6pl1f4$q5u$1@twwells.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6pkmoe$4j6$1@testinfo.uoguelph.ca>Show Full Headers
Complete Article Headers
Message-ID: <6pl1f4$q5u$1@twwells.com> Subject: Re: Expiring just one hierarchy Date: Tue, 28 Jul 1998 00:00:00 +0000 From: bill@twwells.com (T. William Wells) References: <6pkmoe$4j6$1@testinfo.uoguelph.ca> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 375715541 Organization: None, Mt. Laurel, NJ Newsgroups: news.software.nntp