Thread View: news.software.nntp
3 messages
3 total messages
Started by Gary Mills
Tue, 16 Aug 2005 19:04
How to delete all articles in a newsgroup?
Author: Gary Mills
Date: Tue, 16 Aug 2005 19:04
Date: Tue, 16 Aug 2005 19:04
19 lines
1862 bytes
1862 bytes
I recently upgraded our news server from inn-STABLE_2_2-1999-01-09_03-01 to inn-2.4.2. The new server is working very nicely. However, I had a perl script called `ngclean' that I could use to delete all of the articles in a newsgroup. This script no longer works. I had been using it to clean up local news groups whenever a professor wanted to start a new term with an empty newsgroup. Does anyone have such a script that works with inn-2.4.2? Is there another way to do this in reasonably quick fashion? I'm not using the traditional spool, so just removing the files isn't a solution. I'd also like to be sure that index and overview databases are treated nicely when articles are deleted, and that existing client databases don't have to be reinitialized. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Re: How to delete all articles in a newsgroup?
Author: Gary Mills
Date: Tue, 16 Aug 2005 21:45
Date: Tue, 16 Aug 2005 21:45
15 lines
1760 bytes
1760 bytes
In <ddtdce$9qq$1@canopus.cc.umanitoba.ca> Gary Mills <mills@deneb.cc.umanitoba.ca> writes:
>I recently upgraded our news server from inn-STABLE_2_2-1999-01-09_03-01
>to inn-2.4.2. The new server is working very nicely. However, I had
>a perl script called `ngclean' that I could use to delete all of the
>articles in a newsgroup. This script no longer works. I had been
>using it to clean up local news groups whenever a professor wanted
>to start a new term with an empty newsgroup.
A quick read of the manuals gave me this idea. It seems to work fine.
$ tdx-util -g -n local.cs455 | nawk '{print $6}' | sm -d
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Re: How to delete all articles in a newsgroup?
Author: Russ Allbery
Date: Tue, 16 Aug 2005 23:12
Date: Tue, 16 Aug 2005 23:12
16 lines
1780 bytes
1780 bytes
Gary Mills <mills@mira.cc.umanitoba.ca> writes:
> A quick read of the manuals gave me this idea. It seems to work fine.
> $ tdx-util -g -n local.cs455 | nawk '{print $6}' | sm -d
Yes, that works, and nightly expire will clean up the remaining overview
entries. I had your message saved to figure out the right expireover
magic to do the same thing, as I'm pretty sure there's a way to use it as
well, but I'll have to go look at it for a while to figure it out.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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