Thread View: news.software.readers
9 messages
9 total messages
Started by Tom Newton
Wed, 12 Mar 2008 19:50
[SLRNPULL] Script for Marking Replies to Posts
Author: Tom Newton
Date: Wed, 12 Mar 2008 19:50
Date: Wed, 12 Mar 2008 19:50
54 lines
2060 bytes
2060 bytes
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,
Tom
--
calhobbit (at) | The Truth will set you free:
gmail [DOT] com | http://www.sethcenter.com
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: 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 ___ | __ __
|___ | |/ |/ |
___| | | | |
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: 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
-- ~~~~~~~~~~
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Tom Newton
Date: Wed, 12 Mar 2008 22:01
Date: Wed, 12 Mar 2008 22:01
44 lines
2029 bytes
2029 bytes
On 2008-03-12, Troy Piggins <usenet-0803@piggo.com> wrote: > * Tom Newton wrote: > <snip> > I don't understand. You wrote the above functions and scripts to > give a score of 1000 to followups of your posts? > Yes. How could you not understand? The post was very clear. It was hardly a big deal. Took about two minutes. > 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 I see. If that works as well, I'd be a fool not to use it. Thanks. And thanks to Whiskers, too. The versatility and adaptability of slrn is still something I haven't come to terms with. Okay I've tested the above and it seems to work fine. But I think that it is an slang regex, rather than a pcre. Or is it both in this case? I don't think slrn uses pcre's does it? THanks again, Tom -- calhobbit (at) | The Truth will set you free: gmail [DOT] com | http://www.sethcenter.com
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Troy Piggins
Date: Wed, 12 Mar 2008 22:56
Date: Wed, 12 Mar 2008 22:56
58 lines
3474 bytes
3474 bytes
* Tom Newton wrote:
> On 2008-03-12, Troy Piggins <usenet-0803@piggo.com> wrote:
>> * Tom Newton wrote:
>>
> <snip>
>> I don't understand. You wrote the above functions and scripts to
>> give a score of 1000 to followups of your posts?
>
> Yes. How could you not understand? The post was very clear.
I didn't understand why you would go to all that trouble when you
could do it all natively within slrn/slrnpull with it's own
scorefile and regular expressions syntax. That comment was
coupled with my suggestion below.
> It was hardly a big deal. Took about two minutes.
And that's 2mins you'll never get back now :)
>> 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
My bad. Half asleep when I typed this, and confused it with
leafnode which is PCRE. slrn and slang has it's own RE's.
> I see. If that works as well, I'd be a fool not to use it.
>
> Thanks. And thanks to Whiskers, too.
>
> The versatility and adaptability of slrn is still something I
> haven't come to terms with.
Seriously? I thought you had been using it for years.
> Okay I've tested the above and it seems to work fine.
>
> But I think that it is an slang regex, rather than a pcre.
>
> Or is it both in this case? I don't think slrn uses pcre's does it?
Correct. See above.
Excellent article here on the subtleties:
http://pjr.lasnobberia.net/usenet/pcre-slrn.html
--
Troy Piggins | http://piggo.com/~troy/slrn ___ | __ __
|___ | |/ |/ |
___| | | | |
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Peter J Ross
Date: Wed, 12 Mar 2008 23:14
Date: Wed, 12 Mar 2008 23:14
13 lines
1706 bytes
1706 bytes
In news.software.readers on Thu, 13 Mar 2008 06:45:56 +1000, Troy Piggins <usenet-0803@piggo.com> wrote: > I don't understand. Failing to understand whatever the hell is going on in Alan Connor's pointy head is nothing to be ashamed of. -- PJR :-) <http://pjr.lasnobberia.net/usenet/>
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Tom Newton
Date: Wed, 12 Mar 2008 23:15
Date: Wed, 12 Mar 2008 23:15
66 lines
2668 bytes
2668 bytes
On 2008-03-12, Tom Newton <tom@server.invalid> wrote:
> On 2008-03-12, Troy Piggins <usenet-0803@piggo.com> wrote:
>> * Tom Newton wrote:
>>
><snip>
>> I don't understand. You wrote the above functions and scripts to
>> give a score of 1000 to followups of your posts?
>>
>
> Yes. How could you not understand? The post was very clear.
>
> It was hardly a big deal. Took about two minutes.
>
>> 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
>
> I see. If that works as well, I'd be a fool not to use it.
>
> Thanks. And thanks to Whiskers, too.
>
> The versatility and adaptability of slrn is still something I
> haven't come to terms with.
>
> Okay I've tested the above and it seems to work fine.
>
> But I think that it is an slang regex, rather than a pcre.
>
> Or is it both in this case? I don't think slrn uses pcre's does it?
>
> THanks again,
>
> Tom
Inspired by Troy and Whiskers I spent some time really going over
score.txt and came up with this:
[*]
Score: 1000
References: <slrn.*tom@treeoflife\.3v8l2x\.net>$
[*]
Score: 500
References: <slrn.*tom@treeoflife\.3v8l2x\.net>
{:
~References: <slrn.*tom@treeoflife\.3v8l2x\.net>$
}
That gives me a score of 1000 for direct followups and 500 for
any other posts with my MID in the references header.
At least it seems to work that way so far. :)
Tom
--
calhobbit (at) | The Truth will set you free:
gmail [DOT] com | http://www.sethcenter.com
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Tom Newton
Date: Wed, 12 Mar 2008 23:44
Date: Wed, 12 Mar 2008 23:44
75 lines
3201 bytes
3201 bytes
On 2008-03-12, Troy Piggins <usenet-0803@piggo.com> wrote: > * Tom Newton wrote: >> On 2008-03-12, Troy Piggins <usenet-0803@piggo.com> wrote: >>> * Tom Newton wrote: >>> >> <snip> >>> I don't understand. You wrote the above functions and scripts to >>> give a score of 1000 to followups of your posts? >> >> Yes. How could you not understand? The post was very clear. > > I didn't understand why you would go to all that trouble when you > could do it all natively within slrn/slrnpull with it's own > scorefile and regular expressions syntax. That comment was > coupled with my suggestion below. > >> It was hardly a big deal. Took about two minutes. > > And that's 2mins you'll never get back now :) Touche! > >>> 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 > > My bad. Half asleep when I typed this, and confused it with > leafnode which is PCRE. slrn and slang has it's own RE's. > >> I see. If that works as well, I'd be a fool not to use it. >> >> Thanks. And thanks to Whiskers, too. >> >> The versatility and adaptability of slrn is still something I >> haven't come to terms with. > > Seriously? I thought you had been using it for years. Thanks. But hardly. If you aren't just being kind, that would be an illusion that you are largely responsible for: I have spent hours reading your slrn posts in the Usenet archives at google groups. I've glossed over many of them because they were way over my head, but one day I'll return to them. > >> Okay I've tested the above and it seems to work fine. >> >> But I think that it is an slang regex, rather than a pcre. >> >> Or is it both in this case? I don't think slrn uses pcre's does it? > > Correct. See above. > > Excellent article here on the subtleties: > http://pjr.lasnobberia.net/usenet/pcre-slrn.html Many thanks, Tom -- calhobbit (at) | The Truth will set you free: gmail [DOT] com | http://www.sethcenter.com
Re: [SLRNPULL] Script for Marking Replies to Posts
Author: Troy Piggins
Date: Thu, 13 Mar 2008 00:01
Date: Thu, 13 Mar 2008 00:01
19 lines
2293 bytes
2293 bytes
* Peter J Ross wrote:
> In news.software.readers on Thu, 13 Mar 2008 06:45:56 +1000, Troy
> Piggins <usenet-0803@piggo.com> wrote:
>
>> I don't understand.
>
> Failing to understand whatever the hell is going on in Alan Connor's
> pointy head is nothing to be ashamed of.
He's been outed. Why is he playing silly-buggers and acting like
he doesn't know basic scoring rules? We all know that he does
know better than that.
<scratches head then decides doesn't really care at all />
--
Troy Piggins | http://piggo.com/~troy/slrn ___ | __ __
|___ | |/ |/ |
___| | | | |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads