Article View: news.software.nntp
Article #13789Trivial script for cancelling multiple articles on a server
From: Michael Hucka
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
35 lines
2000 bytes
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
Technical Details
Message-ID:
<8220bzmm20.fsf@robin.eecs.umich.edu>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-mailShow Full Headers
Complete Article Headers
Message-ID: <8220bzmm20.fsf@robin.eecs.umich.edu> Subject: Trivial script for cancelling multiple articles on a server Date: Mon, 06 Jan 1997 00:00:00 +0000 From: Michael Hucka <hucka@eecs.umich.edu> 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: 207993719 Organization: University of Michigan EECS, Ann Arbor, Mich., USA Newsgroups: news.software.nntp