🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by midjet Tue, 17 Feb 2009 00:31
Trim newsgroups
#80134
Author: midjet
Date: Tue, 17 Feb 2009 00:31
5 lines
1024 bytes
Does exist a trim of a list of newsgroups that keep the efficien/activ
groups only
---
Via news.studio10k.com
Re: Trim newsgroups
#80127
Author: Alexander Bartolich
Date: Tue, 17 Feb 2009 10:29
28 lines
2085 bytes
midjet wrote:
>
> Does exist a trim of a list of newsgroups that keep the efficien/activ
> groups only

I use a script like this:

$ cat rmgroup-empty.sh
#!/bin/sh
num=${1:-500}
echo ctlinnd throttle rmgroup
egrep -if "rmgroup-empty-include" "/var/lib/news/active" |
awk '$2 - $3 < 0 { printf "ctlinnd rmgroup %s # %d\n", $1, $2 - $3; }' |
head "-${num}"
echo ctlinnd go rmgroup

The output of rmgroup-empty.sh is a shell script.
Redirect it to file, have look at it, then execute it.

File "rmgroup-empty-include" contains a list of hierarchies that should
by managed by the script, e.g.:

$ cat rmgroup-empty-include
^alt\.
^free\.

-- 
seq 0 1 99 | xargs -I. echo 'Romani Ite Domum!'
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