🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91054

Re: Junk messages

#91054
From: Etian
Date: Mon, 06 Nov 2023 20:07
47 lines
2367 bytes
On 11/6/23 10:57, Nigel Reed wrote:
> Some clown has jumped over 1500 junk spam whatever messages into
> comp.sys.arcorn.misc - I'm sure there's probably others with a similar
> issue.
> 
> Can anyone recommend a good way for me to delete all these? Obviously
> cutting and posting the messageid into the cancel command is not an
> option.
> 
> Thanks,
> 
> 
On 11/6/23 10:57, Nigel Reed wrote:
 > Some clown has jumped over 1500 junk spam whatever messages into
 > comp.sys.arcorn.misc - I'm sure there's probably others with a similar
 > issue.
 >
 > Can anyone recommend a good way for me to delete all these? Obviously
 > cutting and posting the messageid into the cancel command is not an
 > option.
 >
 > Thanks,

To clean up a trashed newsgroup, I use a newsreader that will make an 
nzb of selected messages (e.g. pan or forte), then run this PERL script. 
It's crude, and somebody can probably improve it, perhaps for inclusion 
in the INN package.

#!/usr/bin/perl
use strict;
use warnings;

## this script will purge all message_id's found in the specified file
#follow with expireover -s -f /usr/local/news/tmp/group.txt

my ($nzbfile) = @ARGV or die "No file specified";

unless (index($nzbfile,'.nzb')>1) {die "file must have .nzb extension";}
open(NZB,$nzbfile) or die "file not found";
while (<NZB>) {
	if (m/\>(.+)\</) {
		my $command = "/usr/local/news/bin/ctlinnd cancel " . '"<' . $1 . '>"';

		system ($command);
	};
}
exit;
Technical Details
Message-ID: <db5b3$65494789$a6b0bb2b$32283@news.sonic-news.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20231106125731.7a2335a5@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <db5b3$65494789$a6b0bb2b$32283@news.sonic-news.com>
Subject: Re: Junk messages
Date: Mon, 6 Nov 2023 12:07:37 -0800
From: Etian <etian@sonic-news.com>
References: <20231106125731.7a2335a5@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Newsgroups: news.software.nntp
In-Reply-To: <20231106125731.7a2335a5@wibble.sysadmininc.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@sonic-news.com
Organization: www.sonic-news.com
Lines: 47
NNTP-Posting-Date: Mon, 06 Nov 2023 15:07:37 -0500
X-Trace: db5b3654947893151e8e32283