Article View: news.software.readers
Article #198378Re: [slrn] scoring whole threads
From: Troy Piggins
Date: Mon, 23 Apr 2007 23:02
Date: Mon, 23 Apr 2007 23:02
49 lines
2950 bytes
2950 bytes
* Elden Fenison is quoted & my replies are inline below :
> * Peter J Ross [04/23/2007 19:56 UTC]:
>> What you do seem to want is a new way of scoring without editing the
>> scorefile manually. That's a feature request...
>
> Not exactly... I don't mind hand-editing the score file. I'd just like
> an option to score the whole thread (or sub-thread probably). That's it.
> All the rest of the current scoring would work just peachy.
I just had a little play with the macro below (code hacked from
onekey score macro). As defined by the last line, hitting
<esc>-k on an article will get all the parent articles, kill the
OP subject heading, and also kill any references to the OP M-ID,
even if the subject is changed.
Is that something like you are after?
#v+
define killthread () {
if (is_group_mode ())
error (_function_name () + " doesn\'t work in group mode!");
if ( is_article_visible () == 1 )
call ("hide_article");
set_prefix_argument(1);
call ("get_parent_header");
% apply score to parent
set_input_string ("-9999\n" + "\n");
set_input_chars ("s" + "a" + "y");
call ("create_score");
% apply score to children
set_input_string ("-9999\n" + "\n");
set_input_chars ("r" + "a" + "y");
call ("create_score");
}
definekey("killthread", "\ek", "article");
#v-
--
Troy Piggins ,-O (o- O
slrn macros and howto: http://piggo.com/~troy/slrn O ) //\ O
http://piggo.com/~troy `-O V_/_ OOO
RLU#415538
Technical Details
Message-ID:
<20070424085807@usenet.piggo.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mailReferences:
<slrnf2nlsl.1n7o.usenet@elden-pc.moondog.org> <20070422233344.579F.a.NOFFLE@ID-107770.user.individual.net> <slrnf2o4qm.1n7o.usenet@elden-pc.moondog.org> <slrnf2pc9i.5av.chrisgame@URANUS.example.net> <slrnf2pplu.1qnk.usenet@elden-pc.moondog.org> <slrnf2pt1r.5tr.chrisgame@URANUS.example.net> <slrnf2q12h.1qnk.usenet@elden-pc.moondog.org> <slrnf2q3rg.b1f.pjr@pjr.gotdns.org> <slrnf2q7g3.1qnk.usenet@elden-pc.moondog.org>Show Full Headers
Complete Article Headers
Message-ID: <20070424085807@usenet.piggo.com> Subject: Re: [slrn] scoring whole threads Date: Tue, 24 Apr 2007 09:02:42 +1000 From: Troy Piggins <usenet@piggo.com> References: <slrnf2nlsl.1n7o.usenet@elden-pc.moondog.org> <20070422233344.579F.a.NOFFLE@ID-107770.user.individual.net> <slrnf2o4qm.1n7o.usenet@elden-pc.moondog.org> <slrnf2pc9i.5av.chrisgame@URANUS.example.net> <slrnf2pplu.1qnk.usenet@elden-pc.moondog.org> <slrnf2pt1r.5tr.chrisgame@URANUS.example.net> <slrnf2q12h.1qnk.usenet@elden-pc.moondog.org> <slrnf2q3rg.b1f.pjr@pjr.gotdns.org> <slrnf2q7g3.1qnk.usenet@elden-pc.moondog.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) User-Agent: slrn/0.9.8.1pl1/rt (Linux) Lines: 49 NNTP-Posting-Host: 203.206.121.193 X-Trace: 1177370465 per-qv1-newsreader-01.iinet.net.au 25482 203.206.121.193