🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
71 messages
71 total messages Page 1 of 2 Started by ShadowTek Thu, 14 May 2009 20:11
Page 1 of 2 • 71 total messages
[XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233150
Author: ShadowTek
Date: Thu, 14 May 2009 20:11
6 lines
1590 bytes
I'm using XPN 1.2.6, and I was wondering if a rule can be created that
will allow me to auto-ignore all follow-up posts to any post that is
from a certain author.

Being able to killfile someone doesn't seem very usefull if you still
have to sort through all the followups to that person.
Re: [XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233151
Author: Whiskers
Date: Thu, 14 May 2009 21:52
23 lines
2328 bytes
On 2009-05-14, ShadowTek <ShadowTek@fake.email> wrote:
> I'm using XPN 1.2.6, and I was wondering if a rule can be created that
> will allow me to auto-ignore all follow-up posts to any post that is
> from a certain author.
>
> Being able to killfile someone doesn't seem very usefull if you still
> have to sort through all the followups to that person.

That usually depends on whether or not the Message-IDs used by that person 
are sufficiently unique to them, for you to score or filter on the 
References header.  If their MIDs only indicate a widely used news-reader 
or news-server, there isn't a lot you can do about it.  I don't think XPN 
keeps a list by author of the MIDs of 'killed' articles.  Few if any 
newsreaders do, as far as I know.

If a thread or sub-thread becomes a nuisance, score or filter manually on
the References headers containing the MID of the article at the start of
it, or on the Subject.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233152
Author: ShadowTek
Date: Thu, 14 May 2009 23:19
7 lines
1697 bytes
Whiskers wrote:

> I don't think XPN 
> keeps a list by author of the MIDs of 'killed' articles.  Few if any 
> newsreaders do, as far as I know.

Do you know of any in paricular that do have that ability?
Re: [XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233154
Author: VanguardLH
Date: Fri, 15 May 2009 00:58
44 lines
3832 bytes
ShadowTek wrote:

> Whiskers wrote:
> 
>> I don't think XPN 
>> keeps a list by author of the MIDs of 'killed' articles.  Few if any 
>> newsreaders do, as far as I know.
> 
> Do you know of any in paricular that do have that ability?

In 40tude Dialog, if your rule marks a post as ignored (or watched), you
can configure the client to apply the flag to the thread or just to a
subthread.  I configure Dialog to tag on subthreads.  That way, I can
define a rule, like:

!setcolor(maroon;white),ignore,markread From {<regex>}

This colorizes the unwanted post.  I don't delete posts because that can
corrupt the hierarchy of posts in subthreads when I need to look at them
(because someone mentions a post in a subthread that I've ignored).  I
tag the post as ignored (which applies to every reply to that post and
all replies to those replies; i.e., the subthread gets ignored).  I mark
the unwanted post as read.  I then use a view that hides ignored posts.
Because the option is enabled to flag according to subthreads, the
entire subthread is hidden because all its posts got marked as ignored.
<regex> was the regular expression to identify the poster.  Regular
expressions are to be enclosed in braces. 

I trialed many newsreaders over a couple years.  I had panned Dialog
every time because it didn't fullfil one of my requirements: watched
threads go at the top of the header list (so I can actually watch them).
I figured out how to do that with views and short scripts for toolbar
buttons.  Once I found out Dialog's behavior could be modified using
scripts, and only because there was already a large library of scripts
to choose from (so I could use them or modify them to my needs), only
then did I decide to move to Dialog.

If you get Dialog, I suggest also getting the beta update.  It fixed
problems that I encountered regarding subthread flagging.  As I recall,
MesNews also could flag on subthreads but it's been too long since I
last trialed it to be sure.  What I do recall is that it was going to be
my 2nd choice if I didn't stick with Dialog; however, that also means
that I haven't much used MesNews to be expert in it to know if it
would've really stayed a choice.
Re: [XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233155
Author: Rom
Date: Fri, 15 May 2009 05:14
26 lines
1869 bytes
On Thu, 14 May 2009 20:11:22 +0000 (UTC), ShadowTek wrote:

> I'm using XPN 1.2.6, and I was wondering if a rule can be created that
> will allow me to auto-ignore all follow-up posts to any post that is
> from a certain author.
> 
> Being able to killfile someone doesn't seem very usefull if you still
> have to sort through all the followups to that person.

Yes, XPN scoring and action rules are similar to Dialog.

In XPN open Scoring Rules (toolbar button) > New Action Rule (tab).
Under Condition, select "From" and "Contains String", and in the line
provided enter what you want to match, e.g. Test <test@example.com>
Under Action, select "Ignore" from the drop-down list.
Click "Add Rule" and OK.

If the scope was all groups the rule would be:
[*]
!ignore From "Test <test@example.com>"

To apply to messages already retrieved use:
Subscribed Groups > Apply Scoring and Action Rules

-- 
Rom
Re: [XPN] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#233157
Author: ShadowTek
Date: Fri, 15 May 2009 05:31
21 lines
2181 bytes
Rom wrote:

> Yes, XPN scoring and action rules are similar to Dialog.
>
> In XPN open Scoring Rules (toolbar button) > New Action Rule (tab).
> Under Condition, select "From" and "Contains String", and in the line
> provided enter what you want to match, e.g. Test <test@example.com>
> Under Action, select "Ignore" from the drop-down list.
> Click "Add Rule" and OK.
>
> If the scope was all groups the rule would be:
> [*]
> !ignore From "Test <test@example.com>"
>
> To apply to messages already retrieved use:
> Subscribed Groups > Apply Scoring and Action Rules

I'll try that, thanks.

I don't have any documentation for XPN, and I didn't think that
"ignoring" the author would also ignore subthreads.
[slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234740
Author: ShadowTek
Date: Tue, 28 Jul 2009 01:52
36 lines
3043 bytes
On 2009-05-14, Whiskers <catwheezel@operamail.com> wrote:
> On 2009-05-14, ShadowTek <ShadowTek@fake.email> wrote:
>> I'm using XPN 1.2.6, and I was wondering if a rule can be created that
>> will allow me to auto-ignore all follow-up posts to any post that is
>> from a certain author.
>>
>> Being able to killfile someone doesn't seem very usefull if you still
>> have to sort through all the followups to that person.
>
> That usually depends on whether or not the Message-IDs used by that person 
> are sufficiently unique to them, for you to score or filter on the 
> References header.  If their MIDs only indicate a widely used news-reader 
> or news-server, there isn't a lot you can do about it.  I don't think XPN 
> keeps a list by author of the MIDs of 'killed' articles.  Few if any 
> newsreaders do, as far as I know.
>
> If a thread or sub-thread becomes a nuisance, score or filter manually on
> the References headers containing the MID of the article at the start of
> it, or on the Subject.

Ok, so I learned how to do it on XPN, but now I'm using slrn, and I
don't see any convenient way to do this.

It just so happens that the first person's MID that I tried to score
 doesn't have a username, so my only option with that
would be to kill an entire domain, which I don't want to do.

I would imagine that you could script something that would resonstruct
any unavialable headers that are found in each articles references
header, check the From header in each referenced article, 
and then score the originally
evaluated article if needed.

I'm not really sure how to do that though.

Is there some pre-existing method to be used? 
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234752
Author: Whiskers
Date: Tue, 28 Jul 2009 12:05
41 lines
3176 bytes
On 2009-07-28, ShadowTek <ShadowTek@invalid.invalid> wrote:
> On 2009-05-14, Whiskers <catwheezel@operamail.com> wrote:
>> On 2009-05-14, ShadowTek <ShadowTek@fake.email> wrote:

[...]

>> If a thread or sub-thread becomes a nuisance, score or filter manually on
>> the References headers containing the MID of the article at the start of
>> it, or on the Subject.
>
> Ok, so I learned how to do it on XPN, but now I'm using slrn, and I
> don't see any convenient way to do this.

In slrn, while reading an article whose responses you want to kill, hit k 
and then you will see 'References' as one of the options offered; that's 
the one that will kill the thread or sub-thread (if you then allocate a 
score of -9999 when prompted).

> It just so happens that the first person's MID that I tried to score
>  doesn't have a username, so my only option with that
> would be to kill an entire domain, which I don't want to do.
>
> I would imagine that you could script something that would resonstruct
> any unavialable headers that are found in each articles references
> header, check the From header in each referenced article, 
> and then score the originally
> evaluated article if needed.
>
> I'm not really sure how to do that though.
>
> Is there some pre-existing method to be used? 

A while ago, someone mentioned they were working on a "super-plonk" slrn
macro that would in effect keep a list of the MIDs of any articles From 
specified people, and kill all articles with any of those MIDs in the 
References header.  But I don't know if that project got anywhere.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
--
#234755
Author: _
Date: Tue, 28 Jul 2009 13:08
11 lines
1580 bytes
slrn needs the following feature.

Each Message-ID in the “References:” line should be tied to a “person”.
You should be able to score the last 5 Message-ID's this way, by person.
( by “person”, I mean the contents of the “From:” line )

This way, you can “watch” or “plonk” replies to that person,
direct and indirect, up to 5 levels away.

After 5 levels ( or sooner ) the thread has drifted away,
and the title should be updated to reflect that.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234766
Author: ShadowTek
Date: Tue, 28 Jul 2009 16:55
10 lines
1917 bytes
On 2009-07-28, Whiskers <catwheezel@operamail.com> wrote:

> A while ago, someone mentioned they were working on a "super-plonk" slrn
> macro that would in effect keep a list of the MIDs of any articles From 
> specified people, and kill all articles with any of those MIDs in the 
> References header.  But I don't know if that project got anywhere.

Yeah, now that's what I'm talkin about.

If anybody has made it, I'd like to get ahold of it.
Re: slrn needs the following feature.
#234767
Author: ShadowTek
Date: Tue, 28 Jul 2009 17:00
10 lines
1830 bytes
On 2009-07-28, _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:

> After 5 levels ( or sooner ) the thread has drifted away,
> and the title should be updated to reflect that.

Oh I've seen some mightily long threads of foolishness spawned by a single
ass.

As I had found while using XPN, it's often much more productive to just
nip it in the bud, with whoever the repeat offender is.
--
#234770
Author: _
Date: Tue, 28 Jul 2009 17:18
19 lines
2066 bytes
Chronic/Prolific Bozos don't faze me because:

A. I read all posts from those in my “Watch” list, and I read'em first.
   Often, that's plenty reading; sometimes, it's too much and
   it takes me a week or two to catch up.

B. Those not in my Wath list are limited to 5 unRead posts,
   older posts are automatically marked “wasRead”.
   
C. When I encounter a chronic/prolific bozo,
   I mark those posts “wasRead” in a flash
   ( by hitting a special mouse button 5 times ).

D. Those not in my Wath list are sorted by
   “which got the most attention”, more specifically:

     by age and probability of encounter
     ( via randomly walking threads, like PageRank )
     with a penalty for cross-posting.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234779
Author: Troy Piggins
Date: Tue, 28 Jul 2009 20:26
39 lines
3024 bytes
* Whiskers wrote :
> On 2009-07-28, ShadowTek <ShadowTek@invalid.invalid> wrote:
>> On 2009-05-14, Whiskers <catwheezel@operamail.com> wrote:
>>> On 2009-05-14, ShadowTek <ShadowTek@fake.email> wrote:
>
> [...]
>
>>> If a thread or sub-thread becomes a nuisance, score or filter manually on
>>> the References headers containing the MID of the article at the start of
>>> it, or on the Subject.
>>
>> Ok, so I learned how to do it on XPN, but now I'm using slrn, and I
>> don't see any convenient way to do this.
>
> In slrn, while reading an article whose responses you want to kill, hit k 
> and then you will see 'References' as one of the options offered; that's 
> the one that will kill the thread or sub-thread (if you then allocate a 
> score of -9999 when prompted).
>
> [---=| Quote block shrinked by t-prot: 8 lines snipped |=---]
>> evaluated article if needed.
>>
>> I'm not really sure how to do that though.
>>
>> Is there some pre-existing method to be used? 
>
> A while ago, someone mentioned they were working on a "super-plonk" slrn
> macro that would in effect keep a list of the MIDs of any articles From 
> specified people, and kill all articles with any of those MIDs in the 
> References header.  But I don't know if that project got anywhere.

That may have been me you are referring to.  I didn't get it
completed.

I'm finding the "one-key scoring" macro that comes with slrn
works sufficiently for me.

-- 
Troy Piggins
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234781
Author: Troy Piggins
Date: Tue, 28 Jul 2009 22:06
31 lines
2587 bytes
* ShadowTek wrote :
> On 2009-05-14, Whiskers <catwheezel@operamail.com> wrote:
> [---=| Quote block shrinked by t-prot: 13 lines snipped |=---]
>> newsreaders do, as far as I know.
>>
>> If a thread or sub-thread becomes a nuisance, score or filter manually on
>> the References headers containing the MID of the article at the start of
>> it, or on the Subject.
>
> Ok, so I learned how to do it on XPN, but now I'm using slrn, and I
> don't see any convenient way to do this.
>
> It just so happens that the first person's MID that I tried to score
>  doesn't have a username, so my only option with that
> would be to kill an entire domain, which I don't want to do.
>
> I would imagine that you could script something that would resonstruct
> any unavialable headers that are found in each articles references
> header, check the From header in each referenced article, 
> and then score the originally
> evaluated article if needed.
>
> I'm not really sure how to do that though.
>
> Is there some pre-existing method to be used? 

Can you give some examples?  Message-ID of something you're
trying to filter on?

-- 
Troy Piggins
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234782
Author: ShadowTek
Date: Tue, 28 Jul 2009 23:29
54 lines
3830 bytes
On 2009-07-28, Troy Piggins <usenet-0907@piggo.com> wrote:

> Can you give some examples?  Message-ID of something you're
> trying to filter on?

Here are 2 headers from 2 seperate articles. Both are from the same person,
and I have no desire to ever read this person's posts, nor any replies
to any of his posts.

Path: feeder.eternal-september.org!eternal-september.org!not-for-mail
From: Nicholas <Lawrence_Glickman@comcast.net>
Newsgroups: alt.survival
Subject: Re: Dark side of the Russian famine of 1921
Date: Mon, 27 Jul 2009 16:56:49 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <6h8s651k1nbcd4pfhkvv82mq977t2h9bh3@4ax.com>
References: <6vc1k6-i6j.ln1@nntp.tecneeq.de>
<ZLSdnZVzIYTivfPXnZ2dnUVZ_r-dnZ2d@centurytel.net>
Reply-To: Lawrence_Glickman@comcast.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
U2FsdGVkX1/Wi5J0skVyzeRqvLZwHrh8ZNWZJeGokmZgHA3z0Pifs6IMNIiuyS67R+0FuzRiMABwxpwu912UBNxy6qSlKj8tnJ0arbML6EFJswm+lh5sgZFvl
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Mon, 27 Jul 2009 21:56:49 +0000 (UTC)
X-Newsreader: Forte Agent 2.0/32.652
X-Auth-Sender: U2FsdGVkX19GjY28Om6rJZ9Yn4JN63BTyMpOTXpHlHJm+PC3bugRYQ==
Cancel-Lock: sha1:UTF04x0z4EBj2jV8J7AyB2eCY1I=

Path: feeder.eternal-september.org!eternal-september.org!not-for-mail
From: Nicholas <Lawrence_Glickman@comcast.net>
Newsgroups: alt.survival
Subject: Re: Dark side of the Russian famine of 1921
Date: Mon, 27 Jul 2009 16:52:17 -0500
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <578s659s3at798v29epecfmm0nc9jdec2o@4ax.com>
References: <6vc1k6-i6j.ln1@nntp.tecneeq.de>
Reply-To: Lawrence_Glickman@comcast.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org
U2FsdGVkX18qT1YOLs3r+qwcx3zcD1kpN+6nCihjFd5/JidL+eH7I9p8oOTfF0q+RrDAxhNwW8wOsYQTm4KAOysFOwdRH0Xwik9vSsUNSRD8Vfmd2P03MTjQy
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Mon, 27 Jul 2009 21:52:18 +0000 (UTC)
X-Newsreader: Forte Agent 2.0/32.652
X-Auth-Sender: U2FsdGVkX1+V0ltVUag5QE4uBZXz+H/Rtquae2RXU5ywiVwyrs+yMw==
Cancel-Lock: sha1:mw6owqZyvPw5EmfKrFJGV93ZHcQ=

As you can see from his MIDs, he doesn't have a user name, so I can't
score against him specifically.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234783
Author: Troy Piggins
Date: Wed, 29 Jul 2009 00:34
27 lines
2362 bytes
* ShadowTek wrote :
> On 2009-07-28, Troy Piggins <usenet-0907@piggo.com> wrote:
>
>> Can you give some examples?  Message-ID of something you're
>> trying to filter on?
>
> Here are 2 headers from 2 seperate articles. Both are from the same person,
> and I have no desire to ever read this person's posts, nor any replies
> to any of his posts.
<snip />
> As you can see from his MIDs, he doesn't have a user name, so I can't
> score against him specifically.

Aah, gotcha.  Think you need "turbo-plonk.sl":

http://wannabehacker.com/src
http://wannabehacker.com/src/turbo-plonk.sl

I started looking at this but don't recall where I got with it.
I think he's hard coded in who he wants to automatically killfile
replies to.  Maybe you can edit that part if it's only the one
person.

Whatchya reckon?

-- 
Troy Piggins
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234786
Author: ShadowTek
Date: Wed, 29 Jul 2009 05:40
53 lines
3439 bytes
On 2009-07-29, Troy Piggins <usenet-0907@piggo.com> wrote:
>
> Aah, gotcha.  Think you need "turbo-plonk.sl":
>
> http://wannabehacker.com/src
> http://wannabehacker.com/src/turbo-plonk.sl
>
> I started looking at this but don't recall where I got with it.
> I think he's hard coded in who he wants to automatically killfile
> replies to.  Maybe you can edit that part if it's only the one
> person.
>
> Whatchya reckon?

I've made a couple of small scripts in C, but it's been a while, and
although it's similar, I've never made anything with slang before.

I started by referencing the functions to understand exactly what was
being done, and then gradually working my way down the script.

Thusfar, I've needed to reference 3 function lists to understand what
all is going on:

 slang functions:
  http://www.jedsoft.org/slang/doc/pdf/slangfun.pdf

 slrn intrinsic functions:
  http://alcor.concordia.ca/topics/netnews/slrn/doc/macros.html

 slrn interactive functions:
  http://slrn.sourceforge.net/docs/slrn-manual-7.html

But now I've gotten to a part that involes complex string functions that
I'm unfamiliar with:

   variable expression = "(string_match("+hdr+
     ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
     ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
     ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";

Can anyone explain what's going on here, step-by-step?

I don't know whether things are being used from slang, or slrn, or what.

For instance, where can I 
find a reference to the functionallity that [^ ] provides?

It *is* mentioned in slrn's score file FAQ
http://slrn.sourceforge.net/docs/slrn-FAQ-4.html#ss4.19
but where's the actual documentation for this function?

I tried using a search engine, but there where no results. I think that
the use of those particular characters must have prevented a successful search.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234800
Author: Troy Piggins
Date: Wed, 29 Jul 2009 08:17
90 lines
4833 bytes
* ShadowTek wrote :
> On 2009-07-29, Troy Piggins <usenet-0907@piggo.com> wrote:
> [---=| Quote block shrinked by t-prot: 7 lines snipped |=---]
>> I think he's hard coded in who he wants to automatically killfile
>> replies to.  Maybe you can edit that part if it's only the one
>> person.
>>
>> Whatchya reckon?
>
> I've made a couple of small scripts in C, but it's been a while, and
> although it's similar, I've never made anything with slang before.

If you've done some C, you shouldn't have any trouble with
s-lang.

> I started by referencing the functions to understand exactly what was
> being done, and then gradually working my way down the script.
>
> Thusfar, I've needed to reference 3 function lists to understand what
> all is going on:
>
>  slang functions:
>   http://www.jedsoft.org/slang/doc/pdf/slangfun.pdf
>
>  slrn intrinsic functions:
>   http://alcor.concordia.ca/topics/netnews/slrn/doc/macros.html
>
>  slrn interactive functions:
>   http://slrn.sourceforge.net/docs/slrn-manual-7.html

Not sure if you compiled from source or installed some distro's
package.  But with the source, there are some files to help you.
I refer to them all the time when I'm tinkering with macros.

/usr/local/share/doc/slrn/manual.txt
/usr/local/share/doc/slrn/slrnfuns.txt
/usr/local/share/doc/slrn/README.macros and more

Similarly there are some very useful files with the s-lang v2
source in /usr/local/share/doc/slang/v2

Anyway...

> But now I've gotten to a part that involes complex string functions that
> I'm unfamiliar with:
>
>    variable expression = "(string_match("+hdr+
>      ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>      ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>      ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>
> Can anyone explain what's going on here, step-by-step?

Hell no.  Too tired for that and will need some time to absorb it
myself.  And I'm no expert at all at s-lang.

But this is just setting a variable called "expression" to
simplify the "eval" function a couple of lines down.   Think the
"+" is just concatenating strings.  Lots of escape chars in there
for protecting quotes etc.

Essentially I think this is the part to match the "From" header,
and you'd want to change "peter\\.bergt\" to "Nicholas\", unless
you don't want to punish everyone called Nicholas.  You might be
able to include the xx@yyy.zzz part of his From header, but need
to experiment with escaping the "." etc.

Hope that makes sense.

> I don't know whether things are being used from slang, or slrn, or what.

It's all s-lang.

> For instance, where can I 
> find a reference to the functionallity that [^ ] provides?
>
> It *is* mentioned in slrn's score file FAQ
> http://slrn.sourceforge.net/docs/slrn-FAQ-4.html#ss4.19
> but where's the actual documentation for this function?

I don't think it's the same as the slrn score file syntax.  I
think, but may stand corrected, that it's trying to match "not a
space character".

> I tried using a search engine, but there where no results. I
> think that the use of those particular characters must have
> prevented a successful search.

-- 
Troy Piggins
--
#234803
Author: _
Date: Wed, 29 Jul 2009 13:16
24 lines
2250 bytes
This is simple:
“ variable hdr = "extract_article_header(\"From\")";
  [...]
  variable expression = "(string_match("+hdr+
    ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
    ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
    ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
   do {  if (eval(expression)) [...] ”.
     www.wannabeHacker.COM/src/turbo-plonk.sl
     
“hdr” contains the “From:” line; it's just text, a string.
“expression” contains:
“ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>" , 1 ) == 0 and
  string_match( hdr, "peter\.bergt"          , 1 ) == 0 and
  string_match( hdr, ".+@.+ +([^ ]+ [^ ]+.+)", 1 ) == 0

For “ From: Nicholas <Lawrence_Glickman@comcast.net> ”,
the Regular Expression "[^ ]+ +[^ ]+ +<.+@.+>" matchs:

  blackSpace (“From:”), whiteSpace, blackSpace (“Nicholas” ) and 
  “<Lawrence_Glickman@comcast.net>”.

".+@.+ +([^ ]+ [^ ]+.+)" matchs:
“ From: Lawrence_Glickman@comcast.net (Nicholas) ”.
--
#234807
Author: _
Date: Wed, 29 Jul 2009 16:52
13 lines
1721 bytes
Oops, ".+@.+ +([^ ]+ [^ ]+.+)" matchs:
“ From: Lawrence_Glickman@comcast.net (Nicholas Something) ”.

Which is borked, given the “and”'s here:
“ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>" , 1 ) == 0 and
  string_match( hdr, "peter\.bergt"          , 1 ) == 0 and
  string_match( hdr, ".+@.+ +([^ ]+ [^ ]+.+)", 1 ) == 0

While this "[^ ]+ +[^ ]+ +<.+@.+>" matchs:
“ From: Nicholas <Lawrence_Glickman@comcast.net> ”

it doesn't match:
“ From: Nicholas Something <Lawrence_Glickman@comcast.net> ”.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234810
Author: Peter J Ross
Date: Wed, 29 Jul 2009 18:47
26 lines
2460 bytes
In news.software.readers on Wed, 29 Jul 2009 06:26:31 +1000, Troy
Piggins <usenet-0907@piggo.com> wrote:

> * Whiskers wrote :
>
>> A while ago, someone mentioned they were working on a "super-plonk" slrn
>> macro that would in effect keep a list of the MIDs of any articles From 
>> specified people, and kill all articles with any of those MIDs in the 
>> References header.  But I don't know if that project got anywhere.
>
> That may have been me you are referring to.  I didn't get it
> completed.

Would it be possible for you to hand over the incomplete version to
somebody else?

I'm not volunteering, because my understanding of S-Lang is
rudimentary and I don't have much use for that kind of scoring myself,
but perhaps somebody would be interested. Scoring all follow-ups to an
author is certainly a Frequently Requested Feature.

-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234812
Author: Peter J Ross
Date: Wed, 29 Jul 2009 18:55
29 lines
2510 bytes
In news.software.readers on Wed, 29 Jul 2009 05:40:14 +0000 (UTC),
ShadowTek <ShadowTek@invalid.invalid> wrote:

> But now I've gotten to a part that involes complex string functions that
> I'm unfamiliar with:
>
>    variable expression = "(string_match("+hdr+
>      ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>      ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>      ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>
> Can anyone explain what's going on here, step-by-step?

What's going on it that strings are being tested to see if they match
specified regular expressions.

> I don't know whether things are being used from slang, or slrn, or what.
>
> For instance, where can I 
> find a reference to the functionallity that [^ ] provides?

<http://www.s-lang.org/doc/html/slang-22.html>


-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234823
Author: ShadowTek
Date: Wed, 29 Jul 2009 19:37
31 lines
2854 bytes
On 2009-07-29, Peter J Ross <pjr@example.invalid> wrote:
> In news.software.readers on Wed, 29 Jul 2009 05:40:14 +0000 (UTC),
> ShadowTek <ShadowTek@invalid.invalid> wrote:
>
>> But now I've gotten to a part that involes complex string functions that
>> I'm unfamiliar with:
>>
>>    variable expression = "(string_match("+hdr+
>>      ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>>      ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>>      ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>>
>> Can anyone explain what's going on here, step-by-step?
>
> What's going on it that strings are being tested to see if they match
> specified regular expressions.

lol  I know *that* much; it's the slang syntax that I'm trying to
underand.

><http://www.s-lang.org/doc/html/slang-22.html>

Yeah, that's basically what I was looking for last night. But it still
isn't helping me to completely understand every little operation that's
being perfomed.

I'll summarize what I'm still having problems with and post I later.


On another note, I just checked out alt.lang.s-lang hoping to find some
activily, and there's only *one* post! lol
--
#234824
Author: _
Date: Wed, 29 Jul 2009 19:50
7 lines
1492 bytes
John E. Davis (slrn's dev) is going be here soon, I bet.

What's needed is the ability to score on
an enhanced▲1/reBuilt▲2 “References:” line.

▲1: Each Message-ID should be tied to its “From:” line.
▲2: reBuilt from the parent of each ancenstor.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234825
Author: Troy Piggins
Date: Wed, 29 Jul 2009 19:53
31 lines
2735 bytes
* Peter J Ross wrote :
> In news.software.readers on Wed, 29 Jul 2009 06:26:31 +1000, Troy
> Piggins <usenet-0907@piggo.com> wrote:
>
>> * Whiskers wrote :
>>
>>> A while ago, someone mentioned they were working on a "super-plonk" slrn
>>> macro that would in effect keep a list of the MIDs of any articles From 
>>> specified people, and kill all articles with any of those MIDs in the 
>>> References header.  But I don't know if that project got anywhere.
>>
>> That may have been me you are referring to.  I didn't get it
>> completed.
>
> Would it be possible for you to hand over the incomplete version to
> somebody else?
>
> I'm not volunteering, because my understanding of S-Lang is
> rudimentary and I don't have much use for that kind of scoring myself,
> but perhaps somebody would be interested. Scoring all follow-ups to an
> author is certainly a Frequently Requested Feature.

I had a quick search, and it appears it suffered the same fate as
several of my other newer macros and slrn pages on my homepage.
Hard drive failed around Christmas time and embarassed to admit I
hadn't backed up for some months.  :(

I'll try to pick it up again.

-- 
Troy Piggins
Re: The Regular Expressions in turbo-plonk.sl
#234826
Author: Troy Piggins
Date: Wed, 29 Jul 2009 19:56
30 lines
2779 bytes
* _@Jeff_Relf.Seattle.inValid wrote :
> This is simple:
> “ variable hdr = "extract_article_header(\"From\")";
>   [...]
>   variable expression = "(string_match("+hdr+
>     ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>     ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>     ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>    do {  if (eval(expression)) [...] ”.
>      www.wannabeHacker.COM/src/turbo-plonk.sl
>      
> “hdr” contains the “From:” line; it's just text, a string.
> “expression” contains:
> “ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>" , 1 ) == 0 and
>   string_match( hdr, "peter\.bergt"          , 1 ) == 0 and
>   string_match( hdr, ".+@.+ +([^ ]+ [^ ]+.+)", 1 ) == 0
>
> For “ From: Nicholas <Lawrence_Glickman@comcast.net> ”,
> the Regular Expression "[^ ]+ +[^ ]+ +<.+@.+>" matchs:
>
>   blackSpace (“From:”), whiteSpace, blackSpace (“Nicholas” ) and 
>   “<Lawrence_Glickman@comcast.net>”.
>
> ".+@.+ +([^ ]+ [^ ]+.+)" matchs:
> “ From: Lawrence_Glickman@comcast.net (Nicholas) ”.

Thanks Jeff, for this and your other followup.

-- 
Troy Piggins
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234827
Author: Peter J Ross
Date: Wed, 29 Jul 2009 20:40
21 lines
2390 bytes
In news.software.readers on Wed, 29 Jul 2009 19:37:54 +0000 (UTC),
ShadowTek <ShadowTek@invalid.invalid> wrote:

> On another note, I just checked out alt.lang.s-lang hoping to find some
> activily, and there's only *one* post! lol

It's a low volume group, but it sometimes sees flurries of posts. I
think JED (the creator and maintainer of S-Lang) reads it, and FWIW so
do I.

If you want to be among the first to hear about the eagerly awaited
release of S-Lang 2.2.0, alt.lang.s-lang is the place to be.

(This is relevant here in NSR because further development of slrn is
stalled until after the new S-Lang release.)

-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
[JR] Re: An enhanced/reBuilt "References:" line.
#234830
Author: Peter J Ross
Date: Wed, 29 Jul 2009 20:52
34 lines
2665 bytes
In news.software.readers on Wed, 29 Jul 2009 19:50:23 +0000 (UTC),
_@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:

> John E. Davis (slrn's dev) is going be here soon, I bet.

I think he's concentrating on the next S-Lang release. There's no
point in making big changes to slrn while the libraries on which slrn
depends are frequently changing.

There's also very little point in responding to feature requests, such
as yours, in which the nature of the requested feature is unclear as a
result of the requester's inability to write plainly.

> What's needed is the ability to score on
> an enhanced1/reBuilt2 "References:" line.
>
> 1: Each Message-ID should be tied to its "From:" line.
> 2: reBuilt from the parent of each ancenstor.

As has been mentioned, such features as the OP wants can already be
incorporated into slrn by means of a script, if there's enough
interest in the feature for the script to be written.


[quoted text sanitised: triangles, curly quotes and other frippery
removed]



-- 
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [JR] Re: An enhanced/reBuilt "References:" line.
#234832
Author: Adam Funk
Date: Wed, 29 Jul 2009 21:10
25 lines
2203 bytes
On 2009-07-29, Peter J Ross wrote:

> In news.software.readers on Wed, 29 Jul 2009 19:50:23 +0000 (UTC),
> _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:
>
>> John E. Davis (slrn's dev) is going be here soon, I bet.
>
> I think he's concentrating on the next S-Lang release. There's no
> point in making big changes to slrn while the libraries on which slrn
> depends are frequently changing.
>
> There's also very little point in responding to feature requests, such
> as yours, in which the nature of the requested feature is unclear as a
> result of the requester's inability to write plainly.

I think the general condensus is that slrn needs more triangles, curly
quotes, and frippery.  Unfortunately the margin of this psot is too
small for me to start messing around with the compose key to produce
some.

But IJLS "frippery".


-- 
Bob just used 'canonical' in the canonical way.  [Guy Steele]
--
#234831
Author: _
Date: Wed, 29 Jul 2009 21:33
14 lines
1840 bytes
Unicode really shines when discussing/writing code;
“ www.JeffRelf.F-M.FM/ ” is chock-full of Unicode glyphs.

You and Indy call me a kook because  You  have problems with me.

To place a “SuperWatch” or a “SuperPlonk” on someone, each Message-ID
in the “References:” line  Must  be tied to its "From:" line.
What part of this (above) is beyond your grasp ?

The “References:” line must be reBuilt from the parent of each ancestor.
Do you need more examples ? I've given two in the last couple days.

I'm not making any (kooky) demands, don't get me wrong,
slrn's problems are nothing compared to Google's.
--
#234833
Author: _
Date: Wed, 29 Jul 2009 21:48
26 lines
3696 bytes
My code makes every Unicode glyph single, double, triple or
quad “monoSpaced”... thus obviating the need for HTML tables.

It looks like this:
  www.JeffRelf.F-M.FM/Bidi.PNG
  www.JeffRelf.F-M.FM/UTF-8.PNG

!"#$%&'()*+,-./0123456789:;<=>?    €‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ
 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_    ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß
`abcdefghijklmnopqrstuvwxyz{|}~_    àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
    ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψω
    АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя
    ‐‑‒–—―‖‗        ※‼‽‾‿⁀⁁⁂⁃⁄⁅⁆⁇⁈⁉ 
    ⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔ
    ←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏
    ⇐⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪
    ∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟∠∡∢∣∤∥∦∧∨∩∪∫∬∭∮∯∰∱∲∳
    ∴∵∶∷∸∹∺∻∼∽∾∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≔≕≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≪≫
    ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁
    ╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱

    ╲ ╳  ╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕▖▗▘▙▚▛▜▝▞▟■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱
    ▲ △▴▵ ▶ ▷▸▹►▻ ▼ ▽▾▿ ◀ ◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧

    ◨◩◪◫◬◭◮◯◰◱◲◳◴◵◶◷◸◹◺◻◼◽◾◿
Re: Unicode really shines when discussing/writing code.
#234835
Author: Indi
Date: Wed, 29 Jul 2009 23:20
14 lines
1670 bytes
On 2009-07-29, _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:
>
> You and Indy call me a kook because  You  have problems with me.
>

I don't have a problem with you Jeff. I call you a kook because you spend so 
much time apparently talking to yourself and because you refuse to honor subject 
lines, references, and quoting. But it's really not a problem for me; you're the
one that has to live with it. :)

-- 
indi

(Short for "Indulekha", not "Indiana")
--
#234837
Author: _
Date: Thu, 30 Jul 2009 00:10
65 lines
3981 bytes
Some interesting useNutters “talk to themselves”.
People enjoy reading them, I know for sure;
so, per se, there's nothing kooky about such “blogs”.

I reply to posts, not threads; my “Subject:” lines reflect that.
Yet, unLike you, I don't lose track of the heritage:
                ―― Oldest ancestor first ――
              Peter•J•Ross<pjr  news:slrnh716p0.idc.pjr@pjr.gotdns.org
            ShadowTek  news:slrnh718r2.njk.ShadowTek@desktop.localdomain
          Jeff•Relf  news:_@Jeff_Relf.Seattle.2009_Jul29.0.50pm.4v
        Peter•J•Ross<pjr  news:slrnh71djv.idc.pjr@pjr.gotdns.org
      Jeff•Relf  news:_@Jeff_Relf.Seattle.2009_Jul29.2.33pm.KZ
  Indi<indi@16x108    news:slrnh71m9o.4n4.indi@16x108.hb.theunworthy.com
    News.Software.Readers
      slrn➤Linux  Individual.NET, July 29, 2009
        Re: Unicode really shines when discussing/writing code.
            ―――――――――――――――――
Nyms getting the most attention:

   1.      1/  Mike•Easter ―― averaging about 1 post per day.
   2. 27▲  4/  Black•Dragon ――  27 posts, last 4 months.
   3.      1/  XS11E<xs11eNO@SPAMyahoo.com
   4.      1/  Rom<-@-.invalid
   5. 21▲  2/  sittingduck<duck@spamherelots.com
   6.      1/  houghi<houghi@houghi.org.invalid
   7.      1/  VanguardLH<V@nguard.LH
   8. 13▲  1/  Liliana<Lil123@nospam.please
   9.  6▲  3/  ShadowTek<ShadowTek@invalid.invalid
  10.      2/  Jeff•Relf  ◀― ◀― I'm NOT talking to myself, obviously.

Servers getting the most attention (via its users):

   1.  18    149  Eternal-September.ORG ―― 18 nyms made 149 posts.
   2.   8    113  Individual.NET
   3.   3     33  Alt.NET
   4.   8     37  Highwinds-Media.COM (via reSellers)

Clients getting the most attention (via its users):

   1.  20    155  slrn ―― 20 nyms made 155 posts.
   2.  12    108  Xnews
   3.  10    113  40tude
   4.   4     38  MicroSoft-class, e.g. Windows Live Mail
   5.   1     21  aseriesoftubes
   6.   1     30  JeffRelf.F-M.FM/X.ZIP
   7.   4     25  • Don't ask, Don't tell.
   8.   1      6  MacSOUP
   9.   2      6  KNode
  10.   4     33  Pan
  11.   1     30  clawsMail
  12.   4      7  Google
  13.   2      3  Emacs
  14.   1      2  XPN
  15.   1     21  nn
  16.   1      1  Martins•dream•machine
  17.   5      5  Forté Agent, all versions.
  18.   1      1  XanaNews
  19.   1      1  Gecko-class, e.g. ThunderBird.
  
Nyms who didn't post in the last 9 days were omitted and
each nym was limited to its last 30 posts.

Ranking was by age and probability of encounter
( via randomly walking threads, like PageRank )
with a penalty for each newsGroup cross-posted to.
No you don't, you just post a bunch of characters and setup the reference header to make it appear like a reply.
#234836
Author: Pieter Zijlstra
Date: Thu, 30 Jul 2009 01:28
3 lines
1367 bytes
PS why are you changing the subject everytime you reply?

[removed sig, so that you don't have to] ;-)
Re: I reply to posts, not threads; my “Subject:” lines reflect that.
#234838
Author: Indi
Date: Thu, 30 Jul 2009 02:58
19 lines
1970 bytes
On 2009-07-30, _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:
> Some interesting useNutters “talk to themselves”.
> People enjoy reading them, I know for sure;
> so, per se, there's nothing kooky about such “blogs”.
>

Being a kook and producing posts some people sometimes enjoy are not 
at all mutually exclusive. 

> I reply to posts, not threads; my “Subject:” lines reflect that.
> Yet, unLike you, I don't lose track of the heritage:
>

Surely you can see that your habit of unilaterally reinterpreting 
usenet, which is already very well-defined, is more than a bit 
kookish. I'm not criticizing BTW, just pointing out. 

-- 
indi
Re: The Regular Expressions in turbo-plonk.sl
#234839
Author: ShadowTek
Date: Thu, 30 Jul 2009 05:28
61 lines
3660 bytes
On 2009-07-29, _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid> wrote:
> This is simple:
> “ variable hdr = "extract_article_header(\"From\")";
>   [...]
>   variable expression = "(string_match("+hdr+
>     ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>     ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>     ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>    do {  if (eval(expression)) [...] ”.
>      www.wannabeHacker.COM/src/turbo-plonk.sl
>      
> “hdr” contains the “From:” line; it's just text, a string.
> “expression” contains:
> “ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>" , 1 ) == 0 and
>   string_match( hdr, "peter\.bergt"          , 1 ) == 0 and
>   string_match( hdr, ".+@.+ +([^ ]+ [^ ]+.+)", 1 ) == 0
>
> For “ From: Nicholas <Lawrence_Glickman@comcast.net> ”,
> the Regular Expression "[^ ]+ +[^ ]+ +<.+@.+>" matchs:
>
>   blackSpace (“From:”), whiteSpace, blackSpace (“Nicholas” ) and 
>   “<Lawrence_Glickman@comcast.net>”.
>
> ".+@.+ +([^ ]+ [^ ]+.+)" matchs:
> “ From: Lawrence_Glickman@comcast.net (Nicholas) ”.

lol  It might be "simple" if you've done it a few times, but I'm still
trying to understand exactly how each part these regular expressions
work.

I've read
http://www.s-lang.org/doc/html/slang-22.html
but I stil don't understand everything that I'm seeing.

Take this second argument for example:
(string_match("+hdr+",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0)

The first characters are
\"
which escapes the double quote and allows it to become part of the
string that the first argument will be checked against, right?

Then  this:
[^ ]

The doc states:
>    [ ... ]           matches any single character between brackets
>    ^                 matches beginning of a line.

So shouldn't this mean that
[^ ]
is trying to match if a single empty space exists at the beginning of a
line?

You said that
[^ ]
should match the blackspace "From:", but where is *this* functionallity
documented in slang?


I'm just trying to understand one thing at a time at this point.
Re: Obviating the need for HTML tables.
#234842
Author: Adam Funk
Date: Thu, 30 Jul 2009 09:35
36 lines
4058 bytes
On 2009-07-29, _@Jeff_Relf.Seattle.inValid wrote:

> My code makes every Unicode glyph single, double, triple or
> quad “monoSpaced”... thus obviating the need for HTML tables.
>
> It looks like this:
>   www.JeffRelf.F-M.FM/Bidi.PNG
>   www.JeffRelf.F-M.FM/UTF-8.PNG
>
> !"#$%&'()*+,-./0123456789:;<=>?    €‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ
>  ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿
> @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_    ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞß
> `abcdefghijklmnopqrstuvwxyz{|}~_    àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
>     ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψω
>     АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя
>     ‐‑‒–—―‖‗        ※‼‽‾‿⁀⁁⁂⁃⁄⁅⁆⁇⁈⁉ 
>     ⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓₔ
>     ←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏
>     ⇐⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪
>     ∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟∠∡∢∣∤∥∦∧∨∩∪∫∬∭∮∯∰∱∲∳
>     ∴∵∶∷∸∹∺∻∼∽∾∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≔≕≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≪≫
>     ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁
>     ╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱
>
>     ╲ ╳  ╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕▖▗▘▙▚▛▜▝▞▟■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱
>     ▲ △▴▵ ▶ ▷▸▹►▻ ▼ ▽▾▿ ◀ ◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧
>
>     ◨◩◪◫◬◭◮◯◰◱◲◳◴◵◶◷◸◹◺◻◼◽◾◿


I wondered where my printer test page had gone.


-- 
Nobody ever went broke underestimating the taste of 
the American public.                      [Mencken]
--
#234843
Author: _
Date: Thu, 30 Jul 2009 12:28
22 lines
1956 bytes
A “^” at the start of a Regular Expression matches the start of a line.
A “$” at the end of a Regular Expression matches the end of a line.

“[^ ]” matches anything that's not a space.
“[^J]” matches anything that's not a “J”.

By itself, “ www.s-lang.org/doc/html/slang-22.html ” isn't enough,
you need examples as well, and you have to perform tests yourself.

This makes no sense:

“ string_match(  "+hdr+",  \"[^ ]+ +[^ ]+ +<.+@.+>\",   1 ) ”.

it's:

“ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>", 1 ) ”.

when quoted, it becomes:

“ "string_match("  +  hdr  +  ",  \"[^ ]+ +[^ ]+ +<.+@.+>\", 1 )" ”.

“hdr” is a string, the “From:” line.
--
#234685
Author: _
Date: Thu, 30 Jul 2009 13:15
15 lines
2222 bytes
Consciously or not, each uses others as a proxy for himself.
Decrepit and unEmployed, a “kook” insults his proxies,
admonishing them to kill themselves.
   ―――――――――――――――
For those just now tuning in, the heritage of this post is:
                ―― Oldest ancestor first ――
            Jeff•Relf  news:_@Jeff_Relf.Seattle.2009_Jul29.0.50pm.4v
          Peter•J•Ross<pjr  news:slrnh71djv.idc.pjr@pjr.gotdns.org
        Jeff•Relf  news:_@Jeff_Relf.Seattle.2009_Jul29.2.33pm.KZ
      Indi  news:slrnh71m9o.4n4.indi@16x108.hb.theunworthy.com
    Jeff•Relf  news:_@Jeff_Relf.Seattle.2009_Jul29.5.10pm.eN
Indi<indi@16x108    news:slrnh7232s.666.indi@16x108.hb.theunworthy.com
  News.Software.Readers
    slrn  Individual.NET, July 29, 2009
    Re: I reply to posts, not threads; my “Subject:” lines reflect that.
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234847
Author: John E. Davis
Date: Thu, 30 Jul 2009 16:23
128 lines
5187 bytes
On Wed, 29 Jul 2009 05:40:14 +0000 (UTC), ShadowTek <ShadowTek@invalid.invalid>
wrote:
> But now I've gotten to a part that involes complex string functions that
> I'm unfamiliar with:
>
>    variable expression = "(string_match("+hdr+
>      ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>      ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>      ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>
> Can anyone explain what's going on here, step-by-step?

I have no idea why it was written in this form.  Here is a revised
form of this function that I think is more clear:

#v+
define auto_kill_fups ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");
   
   uncollapse_threads;
   call ("header_bob");
   
%   variable trace_file = "/home/themel/slang-log" ;
   variable trace_file = "/dev/null" ;
   variable of = fopen(trace_file, "w") ; 
   
   do
     {
	variable from = extract_article_header ("From");

	if ((0 == string_match (from, "[^ ]+ +[^ ]+ +<.+@.+>", 1))
	    && (0 == string_match (from, "peter\\.bergt", 1))
	    && (0 == string_match (from, ".+@.+ +([^ ]+ [^ ]+.+)", 1)))
          {
             variable mid = extract_article_header("Message-Id");
	     if (of != NULL)
	       () = fprintf (of, "MID %s is fake (%s), killing + FUp's", mid, from);
             % mid = str_quote_string (mid, "\\^$[]*.+?", '\\');
             set_header_flags(get_header_flags() | HEADER_READ);
             ignore_subthread();
          }
     } while (header_down(1));
   
   call ("header_bob");
   collapse_threads;
}
#v-

Note the following code fragment:

#v+
	if ((0 == string_match (from, "[^ ]+ +[^ ]+ +<.+@.+>", 1))
	    && (0 == string_match (from, "peter\\.bergt", 1))
	    && (0 == string_match (from, ".+@.+ +([^ ]+ [^ ]+.+)", 1)))
#v-

(NOTE: If you are using slang-2.0.x instead of slang-2.1.x or slang-2.2.x,
you will need to replace "&&" by "and" in the above)

This performs 3 tests on the from string, and if all fail the
"if-block" will get executed.  The first test requires that the string
match the RE "[^ ]+ +[^ ]+ +<.+@.+>", which says that the "From"
header value contain a portion that looks like:

   "X Y <W@Z>"

where X, Y, W, Z represent 1 or more non-space characters.

The second test matches "peter.bergt".  Perhaps he wrote the macro.

The final one matches:

    "S@T (X YU)"

where S, T, and U represent 1 or more characters.

In other words, the filter will mark subthreads as read if the From
header does not contain values formatted according to one of the above
patterns.

Finally, I think that the ignore_subthread function should be
rewritten to not open a pipe for each subthread.  That is, instead of

#v+
define ignore_subthread ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");

   variable p_handle, datestring;
   p_handle = popen("date --date '21 days' '+%m/%d/%Y'","r");
   () = fgets(&datestring, p_handle);
   () = pclose(p_handle);

   set_input_string (strcat("-9998\n",datestring));
   set_input_chars ("rty");
   call ("create_score");
}
#v-

I would use:
#v+
private variable Twenty_One_Days_Ago = NULL;
define ignore_subthread ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");

   if (Twenty_One_Days_Ago == NULL)
     {
       variable p_handle;
       p_handle = popen("date --date '21 days' '+%m/%d/%Y'","r");
       () = fgets(&Twenty_One_Days_Ago, p_handle);
       () = pclose(p_handle);
     }
   set_input_string (strcat("-9998\n",Twenty_One_Days_Ago));
   set_input_chars ("rty");
   call ("create_score");
}
#v-

Better yet, I would avoid the pipe altogether by making use of the
`strftime' function.

I hope this helps.
--John
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234849
Author: Troy Piggins
Date: Thu, 30 Jul 2009 22:38
67 lines
3870 bytes
* John E. Davis wrote :
>* ShadowTek wrote :
> 
>> But now I've gotten to a part that involes complex string functions that
>> I'm unfamiliar with:
>>
>>    variable expression = "(string_match("+hdr+
>>      ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
>>      ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
>>      ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
>>
>> Can anyone explain what's going on here, step-by-step?
>
> I have no idea why it was written in this form.  Here is a revised
> form of this function that I think is more clear:
>
<snip />
>
> Note the following code fragment:
>
> #v+
> 	if ((0 == string_match (from, "[^ ]+ +[^ ]+ +<.+@.+>", 1))
> 	    && (0 == string_match (from, "peter\\.bergt", 1))
> 	    && (0 == string_match (from, ".+@.+ +([^ ]+ [^ ]+.+)", 1)))
> #v-
>
> (NOTE: If you are using slang-2.0.x instead of slang-2.1.x or slang-2.2.x,
> you will need to replace "&&" by "and" in the above)
>
> This performs 3 tests on the from string, and if all fail the
> "if-block" will get executed.  The first test requires that the string
> match the RE "[^ ]+ +[^ ]+ +<.+@.+>", which says that the "From"
> header value contain a portion that looks like:
>
>    "X Y <W@Z>"
>
> where X, Y, W, Z represent 1 or more non-space characters.
>
> The second test matches "peter.bergt".  Perhaps he wrote the macro.
>
> The final one matches:
>
>     "S@T (X YU)"
>
> where S, T, and U represent 1 or more characters.
>
> In other words, the filter will mark subthreads as read if the From
> header does not contain values formatted according to one of the above
> patterns.
>
> Finally, I think that the ignore_subthread function should be
> rewritten to not open a pipe for each subthread.  That is, instead of
>
<snip />
>
> Better yet, I would avoid the pipe altogether by making use of the
> `strftime' function.
>
> I hope this helps.

Thanks for the tips, John.  I quickly tried the above, and it
doesn't seem to be working but haven't followed it through yet to
see if I can find where.  I'll try to dissect it later today or
over the weekend.  If I can...

-- 
Troy Piggins
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234850
Author: Troy Piggins
Date: Thu, 30 Jul 2009 23:00
19 lines
2321 bytes
* Troy Piggins wrote :
> * John E. Davis wrote :
<snip />
>
> Thanks for the tips, John.  I quickly tried the above, and it
> doesn't seem to be working but haven't followed it through yet to
> see if I can find where.  I'll try to dissect it later today or
> over the weekend.  If I can...

My apologies.  Had some conflict with other macros and hooks.
Disabled all but this one and it does indeed work.

Upon entering the group it does take some time going through all
the articles to add them to the scorefile.  And I'm running a
local leafnode server.  Wonder how sluggish it'd be on dialup and
a remote news server.

-- 
Troy Piggins
--
#234854
Author: _
Date: Thu, 30 Jul 2009 23:55
9 lines
1688 bytes
Doesn't “turbo-plonk.sl” kill “John E. Davis” and all replies to him ?
Bizarrely, only "X Y <W@Z>" or "S@T (X YU)" are allowed.

Troy Piggins asked:
“ Wonder how sluggish it'd be on dialup and a remote news server. ”.

I'm on dialup.  Pipelined NNTP commands are much faster;
with hardware compression, one thousand posts might take 10 minutes.
If the commands aren't pipelined it might take 10 hours, I don't know.
Re: turbo-plonk.sl
#234855
Author: Troy Piggins
Date: Fri, 31 Jul 2009 00:33
17 lines
2283 bytes
* _@Jeff_Relf.Seattle.inValid wrote :
> Doesn't “turbo-plonk.sl” kill “John E. Davis” and all replies to him ?
> Bizarrely, only "X Y <W@Z>" or "S@T (X YU)" are allowed.
>
> Troy Piggins asked:
> “ Wonder how sluggish it'd be on dialup and a remote news server. ”.
>
> I'm on dialup.  Pipelined NNTP commands are much faster;
> with hardware compression, one thousand posts might take 10 minutes.
> If the commands aren't pipelined it might take 10 hours, I don't know.

I wasn't talking about the downloading of articles, I was talking
about the scoring.  Normally it's very fast if you use XOVER
headers only for scoring.

-- 
Troy Piggins
Re: turbo-plonk.sl
#234861
Author: John E. Davis
Date: Fri, 31 Jul 2009 03:59
18 lines
1942 bytes
On Thu, 30 Jul 2009 23:55:29 +0000 (UTC), _@Jeff_Relf.Seattle.inValid <_@Jeff_Relf.Seattle.inValid>
wrote:
> Doesn't “turbo-plonk.sl” kill “John E. Davis” and all replies to him ?
> Bizarrely, only "X Y <W@Z>" or "S@T (X YU)" are allowed.

  No.  X and Y will match the `E.' and `Davis"' portions,
respectively.  The RE did not start with a `^' to force it to be
anchored to the beginning of the header.  I agree with you that it
does limit the patterns, e.g.,

   From: "foobar" <foo@bar.com>
   From: foo@bar.com
   From: <foo@bar.com>

would get flagged.

Thanks,
--John
Re: [slrn] Can I make a rule that will auto-ignore all follow-ups to a certain author?
#234863
Author: John E. Davis
Date: Fri, 31 Jul 2009 04:35
38 lines
2625 bytes
On Fri, 31 Jul 2009 09:00:20 +1000, Troy Piggins <usenet@piggo.com>
wrote:
> Upon entering the group it does take some time going through all
> the articles to add them to the scorefile.  And I'm running a
> local leafnode server.  Wonder how sluggish it'd be on dialup and
> a remote news server.

I suspect that it is because it is overly aggressive in deleting
perfectly good email addresses.  You might see some improvement by
using the onigurama or pcre regexp modules.  They will allow you to
use a precompiled regular expresson.  Also, the REs themselves should
be rewritten to limit backtracking.  For example,

   "[^ ]+ +[^ ]+ +<.+@.+>"

is equivalent to:

   "[^ ]+ +[^ ]+ +<[^@]+@[^>]+>"

And

   ".+@.+ +([^ ]+ [^ ]+.+)"

is almost equivalent to

   ".@[^ ]+ +([^ )]+ [^ )]+[^)]+)"

except that the latter form does not permit @ to be followed by a space.

Finally, I suspect that these REs were designed to check the syntax of
the email addresses.  But as pointed out by Ralf, these REs are not
enough because they fail to match perfectly valid email addresses.  If
this is the intent then it would probably be better to make the
slrn_parse_rfc2822_addr function available to the interpreter.  In
fact, the code is already in interp.c, but it is commented-out.

Thanks,
--John
[slrn] turbo-plonk.sl improved (Was: Can I make a rule that will auto-ignore all follow-ups to a certain author?)
#234868
Author: Troy Piggins
Date: Fri, 31 Jul 2009 14:16
104 lines
5142 bytes
* John E. Davis wrote :
>* Troy Piggins wrote :
> 
>> Upon entering the group it does take some time going through all
>> the articles to add them to the scorefile.  And I'm running a
>> local leafnode server.  Wonder how sluggish it'd be on dialup and
>> a remote news server.
>
> I suspect that it is because it is overly aggressive in deleting
> perfectly good email addresses.  You might see some improvement by
> using the onigurama or pcre regexp modules.  They will allow you to
> use a precompiled regular expresson.  Also, the REs themselves should
> be rewritten to limit backtracking.  For example,
<snip />
> Finally, I suspect that these REs were designed to check the syntax of
> the email addresses.  But as pointed out by Ralf, these REs are not
> enough because they fail to match perfectly valid email addresses.  If
> this is the intent then it would probably be better to make the
> slrn_parse_rfc2822_addr function available to the interpreter.  In
> fact, the code is already in interp.c, but it is commented-out.

Ok.  I've had a bit of a think about it now.  I didn't really
like the way it was handling the "From" searching.  And it was
all hard coded into the macro.  Very hard to add to etc.

So I thought about this, and I can't remember where I had seen
the idea originally, but what if we acted on a particular score
instead.  Keeps it in a separate file.  Means it doesn't matter
if you want to kill on the "real name", "email address", what
format they're in, whatever.

Let's pick -666 as the score.  Upon entering a group, any article
with a score of -666 will automatically cause any articles with
it's Message-ID in their References to be killfiled.

Here's a sample score:

#v+
[*]
Score:: =-666 % followups to this will be killfiled
From: Annoying Poster
From: Another Annoying Poster
#v-

And here's the updated macro.  It kind of works, and it's much
faster than the original.  But for some reason I can't figure out
at the moment, it doesn't add killfile entries for all of the
Message-IDs of posts with score of -666.  In testing it only
seemed to catch the last 3.

#v+
define ignore_subthread ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");

% 1814400 is 21 days in seconds.  haven't figured out how to do
% this better yet.
   variable tm = localtime(_time () + 1814400);

   set_input_string (strcat("-9998\n", strftime("%m/%d/%Y", tm)));
   set_input_chars ("rty");
   call ("create_score");
}

define auto_kill_fups ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");

   uncollapse_threads;
   call ("header_bob");

   do
     {
       variable score = get_header_score ();

       if (-666 == score) {
             variable mid = extract_article_header("Message-Id");
             set_header_flags(get_header_flags() | HEADER_READ);
             ignore_subthread();
       }
     } while (header_down(1));

   call ("header_bob");
   collapse_threads;
}

define article_mode_hook ()
{
	auto_kill_fups () ;
}
#v-

Note the section about 21 days in seconds.  Need a better way to
do that.

Not using pipes any more, though, as JED recommended.

Took out some of the bits of original version that appeared
redundant.  Were they?

-- 
Troy Piggins
--
#234869
Author: _
Date: Fri, 31 Jul 2009 16:13
17 lines
2116 bytes
Thanks for the RegRex/slang lessons John. You rock.

Although I “TurboWatch” my “nym” (i.e. “Jeff_Relf”)
―― and, occationally, other other nyms as well ――
I've never felt the need to TurboPlonk a nym.

Instead, I limit each nym to 5 “unRead” posts
( older posts are automatically marked “wasRead” ) and
I limit each block of >quoted lines to the last 5 non-blank/non-junk.

I call that muffling. I don't plonk. I read  All  replies to me.

Ideally, the NNTP spec (RFC-3977) would specify that each Message-ID
in the “References:” line MUST be paired with its “From:” line.

The “References:” line doesn't need more than the last five ancestors
because each reply belongs to a post/subtread, not to a deeper thread.
Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that will auto-ignore all follow-ups to a certain author?)
#234870
Author: John E. Davis
Date: Fri, 31 Jul 2009 17:15
71 lines
3363 bytes
On Sat, 01 Aug 2009 00:16:22 +1000, Troy Piggins <usenet-0907@piggo.com>
wrote:
> Let's pick -666 as the score.  Upon entering a group, any article
> with a score of -666 will automatically cause any articles with
> it's Message-ID in their References to be killfiled.
[...]

Here is a version that deals directly with the scorefile and should be
a bit faster.  --John

#v+
private variable Scorefile_Score = -666;
private variable Subthread_Score = -9998;
private variable Subthread_Expires = 21;
private define auto_kill_fups ()
{
   if (is_group_mode ())
     error (_function_name () + " doesn't work in group mode!");

   uncollapse_threads ();
   call ("header_bob");
   EXIT_BLOCK
     {
	call ("header_bob");
	collapse_threads ();
     }

   variable mid, msgids = {};

   do
     {
	if (Scorefile_Score == get_header_score ())
	  {
	     mid = extract_article_header ("Message-ID");
	     list_append (msgids, mid);
             set_header_flags(get_header_flags() | HEADER_READ);
	  }
     } 
   while (header_down(1));

   if (length (msgids) == 0)
     return;

   variable 
     scorefile = make_home_filename (get_variable_value ("scorefile")),
     expires = strftime("%m/%d/%Y", 
			localtime(_time() + Subthread_Expires*86400)),
     fp = fopen (scorefile, "a");

   if (fp == NULL)
     throw IOError, "Unable to open $scorefile"$;
   
   if ((-1 == fprintf (fp, "\n%%BOS\n%% Score auto generated by %s at %s\n",
		      _function_name (), time ()))
       || (-1 == fprintf (fp, "[%s]\n\tScore:: %d\n\tExpires: %s\n",
			  current_newsgroup (), Subthread_Score, expires)))
     return;
   
   foreach mid (msgids)
     {
	if (-1 == fprintf (fp,"\tReferences: %s\n", 
			   str_quote_string (mid, "\\^$[]*.+?", '\\')))
	  return;
     }
   () = fprintf (fp, "%%EOS\n");
   () = fclose (fp);
   reload_scorefile (1);
}

() = register_hook ("article_mode_hook", &auto_kill_fups);
#v-
Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that will auto-ignore all follow-ups to a certain author?)
#234872
Author: Troy Piggins
Date: Fri, 31 Jul 2009 22:15
77 lines
4006 bytes
* John E. Davis wrote :
> On Sat, 01 Aug 2009 00:16:22 +1000, Troy Piggins <usenet-0907@piggo.com>
> wrote:
>> Let's pick -666 as the score.  Upon entering a group, any article
>> with a score of -666 will automatically cause any articles with
>> it's Message-ID in their References to be killfiled.
> [...]
>
> Here is a version that deals directly with the scorefile and should be
> a bit faster.  --John
>
> #v+
> private variable Scorefile_Score = -666;
> private variable Subthread_Score = -9998;
> private variable Subthread_Expires = 21;
> private define auto_kill_fups ()
> {
>    if (is_group_mode ())
>      error (_function_name () + " doesn't work in group mode!");
>
>    uncollapse_threads ();
>    call ("header_bob");
>    EXIT_BLOCK
>      {
> 	call ("header_bob");
> 	collapse_threads ();
>      }
>
>    variable mid, msgids = {};
>
>    do
>      {
> 	if (Scorefile_Score == get_header_score ())
> 	  {
> 	     mid = extract_article_header ("Message-ID");
> 	     list_append (msgids, mid);
>              set_header_flags(get_header_flags() | HEADER_READ);
> 	  }
>      } 
>    while (header_down(1));
>
>    if (length (msgids) == 0)
>      return;
>
>    variable 
>      scorefile = make_home_filename (get_variable_value ("scorefile")),
>      expires = strftime("%m/%d/%Y", 
> 			localtime(_time() + Subthread_Expires*86400)),
>      fp = fopen (scorefile, "a");
>
>    if (fp == NULL)
>      throw IOError, "Unable to open $scorefile"$;
>    
>    if ((-1 == fprintf (fp, "\n%%BOS\n%% Score auto generated by %s at %s\n",
> 		      _function_name (), time ()))
>        || (-1 == fprintf (fp, "[%s]\n\tScore:: %d\n\tExpires: %s\n",
> 			  current_newsgroup (), Subthread_Score, expires)))
>      return;
>    
>    foreach mid (msgids)
>      {
> 	if (-1 == fprintf (fp,"\tReferences: %s\n", 
> 			   str_quote_string (mid, "\\^$[]*.+?", '\\')))
> 	  return;
>      }
>    () = fprintf (fp, "%%EOS\n");
>    () = fclose (fp);
>    reload_scorefile (1);
> }
>
> () = register_hook ("article_mode_hook", &auto_kill_fups);
> #v-

Fantastic!  Works beautifully!  Thankyou master!

-- 
Troy Piggins
Re: [slrn] turbo-plonk.sl improved (Was: Can I make a rule that will auto-ignore all follow-ups to a certain author?)
#234875
Author: Keith
Date: Fri, 31 Jul 2009 23:00
85 lines
4367 bytes
On 2009-07-31, Troy Piggins <usenet-0908@piggo.com> wrote:
> * John E. Davis wrote :
>> On Sat, 01 Aug 2009 00:16:22 +1000, Troy Piggins <usenet-0907@piggo.com>
>> wrote:
>>> Let's pick -666 as the score.  Upon entering a group, any article
>>> with a score of -666 will automatically cause any articles with
>>> it's Message-ID in their References to be killfiled.
>> [...]
>>
>> Here is a version that deals directly with the scorefile and should be
>> a bit faster.  --John
>>
>> #v+
>> private variable Scorefile_Score = -666;
>> private variable Subthread_Score = -9998;
>> private variable Subthread_Expires = 21;
>> private define auto_kill_fups ()
>> {
>>    if (is_group_mode ())
>>      error (_function_name () + " doesn't work in group mode!");
>>
>>    uncollapse_threads ();
>>    call ("header_bob");
>>    EXIT_BLOCK
>>      {
>> 	call ("header_bob");
>> 	collapse_threads ();
>>      }
>>
>>    variable mid, msgids = {};
>>
>>    do
>>      {
>> 	if (Scorefile_Score == get_header_score ())
>> 	  {
>> 	     mid = extract_article_header ("Message-ID");
>> 	     list_append (msgids, mid);
>>              set_header_flags(get_header_flags() | HEADER_READ);
>> 	  }
>>      } 
>>    while (header_down(1));
>>
>>    if (length (msgids) == 0)
>>      return;
>>
>>    variable 
>>      scorefile = make_home_filename (get_variable_value ("scorefile")),
>>      expires = strftime("%m/%d/%Y", 
>> 			localtime(_time() + Subthread_Expires*86400)),
>>      fp = fopen (scorefile, "a");
>>
>>    if (fp == NULL)
>>      throw IOError, "Unable to open $scorefile"$;
>>    
>>    if ((-1 == fprintf (fp, "\n%%BOS\n%% Score auto generated by %s at %s\n",
>> 		      _function_name (), time ()))
>>        || (-1 == fprintf (fp, "[%s]\n\tScore:: %d\n\tExpires: %s\n",
>> 			  current_newsgroup (), Subthread_Score, expires)))
>>      return;
>>    
>>    foreach mid (msgids)
>>      {
>> 	if (-1 == fprintf (fp,"\tReferences: %s\n", 
>> 			   str_quote_string (mid, "\\^$[]*.+?", '\\')))
>> 	  return;
>>      }
>>    () = fprintf (fp, "%%EOS\n");
>>    () = fclose (fp);
>>    reload_scorefile (1);
>> }
>>
>> () = register_hook ("article_mode_hook", &auto_kill_fups);
>> #v-
>
> Fantastic!  Works beautifully!  Thankyou master!
>

 How does this work? Is it key bound or run automatically. I don't
see anything in the macro for a key and when I added it to slrn
as a macro it did nothing. 


-- 
Best Regards, Keith
http://home.comcast.net/~kilowattradio/
Page 1 of 2 • 71 total messages
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