Article View: news.software.readers
Article #217695Re: [SLRNPULL] Script for Marking Replies to Posts
From: Whiskers
Date: Wed, 12 Mar 2008 21:21
Date: Wed, 12 Mar 2008 21:21
77 lines
3534 bytes
3534 bytes
On 2008-03-12, Tom Newton <tom@server.invalid> 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,
If your MIDs always contain the "tom@treeoflife.3v8l2x.net" part, you can
score on that alone - and don't need to create a list of the MIDs at all
(which would quickly become very cumbersome).
Here's the part of my score file that 'scores up' replies to my posts;
direct responses get their score increased by 200 and responses to those
(up to four deep) get their score increased by 100.
%slrn score file
%
%universal scores
%
[*]
Score:: 100 %fup to mine
References: ID-107770\.user\.individual\.net>$
References: ID-107770\.user\.individual\.net>[^>]+>$
References: ID-107770\.user\.individual\.net>[^>]+>[^>]+>$
References: ID-107770\.user\.individual\.net>[^>]+>[^>]+>[^>]+>$
References: ID-107770\.user\.individual\.net>[^>]+>[^>]+>[^>]+>[^>]+>$
Score: 100 %direct fup to mine
References: ID-107770\.user\.individual\.net>$
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnftgi9u.8qf.catwheezel@ID-107770.user.individual.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-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<slrnftgcva.opf.tom@treeoflife.3v8l2x.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnftgi9u.8qf.catwheezel@ID-107770.user.individual.net> Subject: Re: [SLRNPULL] Script for Marking Replies to Posts Date: Wed, 12 Mar 2008 21:21:02 +0000 From: Whiskers <catwheezel@operamail.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-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 77 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net Kk6qrG84zufh3qFe8RWOEAHa98Y3uRJkcjV3jFgGKcind0t6e/ X-Orig-Path: tavy.mobile.private!not-for-mail Cancel-Lock: sha1:cB6z5UolgI46rgnCbmYPX4cmIk0= X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_ "Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@ p& g^8<z5>HA User-Agent: slrn/pre0.9.9-94 (Linux)