🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Michael Hucka Mon, 06 Jan 1997 00:00
Trivial script for cancelling multiple articles on a server
#13789
Author: Michael Hucka
Date: Mon, 06 Jan 1997 00:00
35 lines
2000 bytes
For whatever it's worth, I offer the following trivial script for cancelling
batches of news articles.  On our machine I call it "newscancel".  Usage:

 1) Save the offending articles to a file (put several in the same file)
 2) Run "newscancel filename"

It simply greps out Message-ID's headers from the file, massages the result
and issues "ctlinnd cancel" commands for each message ID found.

I find this useful for manually cancelling spam on our news server as I come
across it while reading our local groups in my normal newsreader.  I just
save the articles to a file from my newsreader as I see them, then log in on
the server (using the news account) and cancel them en masse using the script.

I'm sure others among you have similar or better tools; I just wanted to post
this in case it saves someone else a bit of time and effort.

#!/bin/sh
#
# Description : Issue cancel cmds for batches of undesired articles
# Author(s)   : Michael Hucka <hucka@eecs.umich.edu>
# Organization: University of Michigan EECS DCO
# Created     : 1996-12-09 21:44 EDT
# 

fgrep Message-ID $1 | tr "<>" "''" |\
   cut -f2 -d' ' | awk '{ print "ctlinnd cancel " $1 }' | sh -x

-- 
Mike Hucka     hucka@umich.edu     <URL: http://ai.eecs.umich.edu/people/hucka>
 Ph.D. candidate, computational models of human visual processing, U-M AI Lab
     UNIX admin & programmer/analyst, EECS Dept., University of Michigan

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