Article View: news.software.nntp
Article #64319Re: Deleting messages from a news group
From: Andrew - Supernews
Date: Sat, 08 Mar 2003 23:38
Date: Sat, 08 Mar 2003 23:38
41 lines
2533 bytes
2533 bytes
In article <1%taa.8478$3g.1585781@newssrv26.news.prodigy.com>,
Kevin Blackwell wrote:
> Sorry, and yes I am running inn. I know about the ctlinnd cancel, but its'
> tedious scanning through my newsreader, then going to my shell, and typing
> in ctlinnd cancel <msg-id> . What I'm looking for is something that will let
> me do it from some type of newsreader. If I can configure a newsreader to do
> that, then I'll look into that, but I do know if that can be done. Any
> pointing in the right direction would be appreciated.
Many newsreaders can be configured to do this type of thing.
For example, using slrn, one can do something like this:
define local_cancel () {
variable id = extract_article_header("Message-ID");
!if (id == "")
{
variable x = get_yes_no_cancel("Delete "+str_quote_string(id,"%",'%'));
if (x == 1) system("ctlinnd cancel '" + id + "'");
}
}
definekey("local_cancel", "\eC", "article");
(put that in a file, e.g. "cancel.sl", and put the line
interpret "cancel.sl"
in your .slrnrc)
Then the key sequence ESC C in the article window will locally cancel the
current article (not necessarily the _displayed_ article).
This of course can be refined much further.
If slrn's not to your taste, then many other newsreaders have the option to
pipe an article to a program; just knock up a simple script to extract the
message-id and execute the ctlinnd cancel.
--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID:
<slrnb6kvns.1evl.andrew+nonews@trinity.supernews.net>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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<1OY9a.7528$3g.1238590@newssrv26.news.prodigy.com> <b4agso$6fj$1@puck.litech.org> <1%taa.8478$3g.1585781@newssrv26.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnb6kvns.1evl.andrew+nonews@trinity.supernews.net> Subject: Re: Deleting messages from a news group Date: Sat, 08 Mar 2003 23:38:36 -0000 From: Andrew - Supernews <andrew+nonews@supernews.com> References: <1OY9a.7528$3g.1238590@newssrv26.news.prodigy.com> <b4agso$6fj$1@puck.litech.org> <1%taa.8478$3g.1585781@newssrv26.news.prodigy.com> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.nntp Organization: http://www.supernews.com - all your nntp are belong to us Reply-To: andrew@supernews.com User-Agent: slrn/0.9.7.4 (FreeBSD) X-Complaints-To: abuse@supernews.com Lines: 40