Article View: news.software.readers
Article #217691Re: [SLRNPULL] Script for Marking Replies to Posts
From: Troy Piggins
Date: Wed, 12 Mar 2008 20:45
Date: Wed, 12 Mar 2008 20:45
67 lines
3297 bytes
3297 bytes
* Tom Newton wrote:
> For Linux/Unix runners.
>
> This is pretty simple, but it works well. I use slrnpull's
> scorefile just for killing articles.
>
> This is my slrn scorefile's last entry:
>
> [*]
> Score:: 1000
> References: <slrnftcbar.muh.tom@treeoflife.3v8l2x.net>
> References: <slrnftgbmo.nps.tom@treeoflife.3v8l2x.net>
> References: <slrnftgbup.oab.tom@treeoflife.3v8l2x.net>
> ...
>
> I run slrnpull using a function (in my ~/.bashrc):
>
> sp ()
> {
> slrn-score.sh;
> slrnpull -d /var/spool/slrnpull -h newsserver.org --kill-log /var/spool/slrnpull/kill-log
> }
>
>
> This script below pulls out the slrn-generated Message-ID from my posts
> before posting them, edits them as above, and appends them to my
> slrn scorefile:
>
> --------------
> #!/bin/bash
>
> # slrn-score.sh
>
> for file in /var/spool/slrnpull/out.going/X*
> do
> sed -n 's/\(^Message-ID: \)\(.*\)/References: \2/p' $file >> /home/tom/news/Score
> done
>
> exit 0
>
> --------
>
> So any replies to my posts are marked with "!" and "1000".
>
> This is useful on busy newsgroups.
>
> Hope someone finds this helpful,
I don't understand. You wrote the above functions and scripts to
give a score of 1000 to followups of your posts?
What's wrong with a simple score rule in your score file?
[*]
Score: =+1000
References: <slrn.*tom@treeoflife\.3v8l2x\.net>$
Or something like that? The last line is just a pcre.
$ man pcre
$ man pcrepattern
--
Troy Piggins | http://piggo.com/~troy/slrn ___ | __ __
|___ | |/ |/ |
___| | | | |
Technical Details
Message-ID:
<20080313063931.284@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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mailReferences:
<slrnftgcva.opf.tom@treeoflife.3v8l2x.net>Show Full Headers
Complete Article Headers
Message-ID: <20080313063931.284@usenet.piggo.com> Subject: Re: [SLRNPULL] Script for Marking Replies to Posts Date: Thu, 13 Mar 2008 06:45:56 +1000 From: Troy Piggins <usenet-0803@piggo.com> References: <slrnftgcva.opf.tom@treeoflife.3v8l2x.net> 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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 67 Reply-To: usenet-0803@piggo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: feeder.motzarella.org U2FsdGVkX1+j37H9BgIH7/qdQufkv63y165qeDTdlxqifHpiHCnVF5ENH03dCYLaT+Dm4i8OGgeTRpTMRHrFeHjkKEtehx/qJr7f8YSRfbvmApR/0flT4yRFiFA3wFrCEqjazuGR15DmE6cGOqu/Lw== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Wed, 12 Mar 2008 21:18:44 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18DkpDM9Hmfu0slvCDsGXsdrz5BO+xqCVreKqGQ7nioDg== X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) Cancel-Lock: sha1:Lux/UjbLQnBcBf4ygpW9+CSL+I4= User-Agent: slrn/pre0.9.9-99/rt (Linux)