Thread View: news.software.readers
14 messages
14 total messages
Started by Lewis
Sat, 07 Sep 2013 12:37
[slrn] Score file question
Author: Lewis
Date: Sat, 07 Sep 2013 12:37
Date: Sat, 07 Sep 2013 12:37
20 lines
1777 bytes
1777 bytes
I tried to create a score definition that would automatically add 100 to any messages posted to a private newsserver. [private.*] Score: 100 From: * this didn't work, but [private.*] Score: 100 From: bob@private.news Seemed to work for posts from bob. I've evidently forgotten the little I once knew about scorefiles. -- Critics look at actresses one of two ways: you're either bankable or boinkable.
Re: [slrn] Score file question
Author: Mike Yetto
Date: Sat, 07 Sep 2013 13:27
Date: Sat, 07 Sep 2013 13:27
44 lines
2717 bytes
2717 bytes
In a world where Lewis <g.kreme@gmail.com.dontsendmecopies> posts to Usenet. > I tried to create a score definition that would automatically > add 100 to any messages posted to a private newsserver. > [private.*] > Score: 100 > From: * > this didn't work, but > [private.*] > Score: 100 > From: bob@private.news > Seemed to work for posts from bob. > I've evidently forgotten the little I once knew about scorefiles. If you want to score on any set of articles you must first find something that will uniquely identify that set. I don't think you can score on the bang path so you need to find something else. Is there a specific server you wish to ignore? This might be easier (read possible) than scoring on any private newsserver. The example that you say works doesn't score on a server, but it does score on all groups within a hierarchy. You would do this for all articles from anyone with a correctly constructed regular expression, ie. "From: .*" without the quotes. This seems meaningless to me as it would just move the base score for all articles from 0 to 100. If this isn't what you want, try asking your question again in a different manner. That, added to this question, may help clarify your goal. Mike "not really sure what you need" Yetto -- "I could dance with you till the cows come home. On second thought, I'd rather dance with the cows till you come home." - Groucho Marx
Re: [slrn] Score file question
Author: Lewis
Date: Sat, 07 Sep 2013 14:54
Date: Sat, 07 Sep 2013 14:54
65 lines
4159 bytes
4159 bytes
In message <slrn20130907091053.181.twooffive@may.eternal-september.org> Mike Yetto <myetto1@nycap.invalid> wrote: > In a world where Lewis <g.kreme@gmail.com.dontsendmecopies> > posts to Usenet. >> I tried to create a score definition that would automatically >> add 100 to any messages posted to a private newsserver. >> [private.*] >> Score: 100 >> From: * >> this didn't work, but >> [private.*] >> Score: 100 >> From: bob@private.news >> Seemed to work for posts from bob. >> I've evidently forgotten the little I once knew about scorefiles. > If you want to score on any set of articles you must first > find something that will uniquely identify that set. I don't > think you can score on the bang path so you need to find > something else. > Is there a specific server you wish to ignore? This might be > easier (read possible) than scoring on any private newsserver. I connect to a newserver that is entirely off USENET and all its groups are prefixed with the name of the group running the server, like acme.test acme.discussion, etc. I connect to it using the same slrnrc and score file that I use for everything else, just with a different command line (slrn -h private.news.tld). I have a lot of 'little' rules that drive scores under 0, but not under 100 which means I don't normally see the posts, but if they are in a thread I'm following I might read them anyway. (things like improper content types or posting from googlegroups). Since these rules, combined, score at most 100 points, I want to negate them all by not having them apply to any post in a group with the prefix. I thought From: * would match everything with a From: header. I'll try .* next time I connect to it (I'd do it now, but there are no new posts and are unlikely to be until Monday). > The example that you say works doesn't score on a server, but it > does score on all groups within a hierarchy. You would do this > for all articles from anyone with a correctly constructed regular > expression, ie. "From: .*" without the quotes. This seems > meaningless to me as it would just move the base score for all > articles from 0 to 100. Yes, exactly what I want to do. > Mike "not really sure what you need" Yetto Hopefully I've explained it better and now you can tell me why what I'm doing is silly and that there's a much better and cleverer way to do it. No, really, I'm hoping for cleverer. -- Why is it so damn hot in here, and why are we all in a handbasket?
Re: [slrn] Score file question
Author: Mike Yetto
Date: Sat, 07 Sep 2013 15:41
Date: Sat, 07 Sep 2013 15:41
73 lines
4352 bytes
4352 bytes
In a world where Lewis <g.kreme@gmail.com.dontsendmecopies>
posts to Usenet.
> In message <slrn20130907091053.181.twooffive@may.eternal-september.org>
> Mike Yetto <myetto1@nycap.invalid> wrote:
>> In a world where Lewis <g.kreme@gmail.com.dontsendmecopies>
>> posts to Usenet.
>>> I tried to create a score definition that would automatically
>>> add 100 to any messages posted to a private newsserver.
>>> [private.*]
>>> Score: 100
>>> From: *
>>> this didn't work, but
>>> [private.*]
>>> Score: 100
>>> From: bob@private.news
>> Is there a specific server you wish to ignore? This might be
>> easier (read possible) than scoring on any private newsserver.
> I connect to a newserver that is entirely off USENET and all its groups
> are prefixed with the name of the group running the server, like
> acme.test acme.discussion, etc. I connect to it using the same slrnrc
> and score file that I use for everything else, just with a different
> command line (slrn -h private.news.tld).
Okay, now I get it. You only have one score file that has scores
you want to disregard for private.<whatever> groups. Disregard
the last sentence in my next paragraph.
> I have a lot of 'little' rules that drive scores under 0, but not under
> 100 which means I don't normally see the posts, but if they are in a
> thread I'm following I might read them anyway. (things like improper
> content types or posting from googlegroups). Since these rules,
> combined, score at most 100 points, I want to negate them all by not
> having them apply to any post in a group with the prefix.
> I thought From: * would match everything with a From: header. I'll try
> .* next time I connect to it (I'd do it now, but there are no new posts
> and are unlikely to be until Monday).
The specification for selecting which post to score uses regular
expressions. So a solitary splat (*) is meaningless, but dot
splat (.*) means any number of any character. In other words,
select everything.
>> The example that you say works doesn't score on a server, but it
>> does score on all groups within a hierarchy. You would do this
>> for all articles from anyone with a correctly constructed regular
>> expression, ie. "From: .*" without the quotes. This seems
>> meaningless to me as it would just move the base score for all
>> articles from 0 to 100.
> Yes, exactly what I want to do.
> Hopefully I've explained it better and now you can tell me why what I'm
> doing is silly and that there's a much better and cleverer way to do it.
> No, really, I'm hoping for cleverer.
It does seem to be a good solution to the problem I didn't see.
Well, I'm glad I gave you an answer, even though I thought it
made no sense.
Mike "just draw a target around the hit" Yetto
--
"There is danger from all men. The only maxim of a free
government ought to be to trust no man living with power to
endanger the public liberty."
- John Adams
Re: [slrn] Score file question
Author: Whiskers
Date: Sat, 07 Sep 2013 18:14
Date: Sat, 07 Sep 2013 18:14
40 lines
3108 bytes
3108 bytes
On 2013-09-07, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrn20130907091053.181.twooffive@may.eternal-september.org> > Mike Yetto <myetto1@nycap.invalid> wrote: >> In a world where Lewis <g.kreme@gmail.com.dontsendmecopies> >> posts to Usenet. [...] > I connect to a newserver that is entirely off USENET and all its groups > are prefixed with the name of the group running the server, like > acme.test acme.discussion, etc. I connect to it using the same slrnrc > and score file that I use for everything else, just with a different > command line (slrn -h private.news.tld). > > I have a lot of 'little' rules that drive scores under 0, but not under > 100 which means I don't normally see the posts, but if they are in a > thread I'm following I might read them anyway. (things like improper > content types or posting from googlegroups). Since these rules, > combined, score at most 100 points, I want to negate them all by not > having them apply to any post in a group with the prefix. [...] Would "slrn -hk private.news.tld" suffice - ie ignore the score file when reading from that server? If your scorefile has some rules that you want to apply to all newsgroups except those in the private.* hierarchy, use the tilde in the line specifying the newsgroups - eg "[~ private.*]". Or you can use the "~Newsgroup: private" line as part of the score definition. See the file score.txt which should have been included in your slrn package. (Try /usr/share/doc/slrn/score.txt). -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Score file question
Author: Lewis
Date: Sat, 07 Sep 2013 19:05
Date: Sat, 07 Sep 2013 19:05
54 lines
3977 bytes
3977 bytes
In message <slrnl2mr8p.2m1.catwheezel@ID-107770.user.individual.net> Whiskers <catwheezel@operamail.com> wrote: > On 2013-09-07, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: >> In message <slrn20130907091053.181.twooffive@may.eternal-september.org> >> Mike Yetto <myetto1@nycap.invalid> wrote: >>> In a world where Lewis <g.kreme@gmail.com.dontsendmecopies> >>> posts to Usenet. > [...] >> I connect to a newserver that is entirely off USENET and all its groups >> are prefixed with the name of the group running the server, like >> acme.test acme.discussion, etc. I connect to it using the same slrnrc >> and score file that I use for everything else, just with a different >> command line (slrn -h private.news.tld). >> >> I have a lot of 'little' rules that drive scores under 0, but not under >> 100 which means I don't normally see the posts, but if they are in a >> thread I'm following I might read them anyway. (things like improper >> content types or posting from googlegroups). Since these rules, >> combined, score at most 100 points, I want to negate them all by not >> having them apply to any post in a group with the prefix. > [...] > Would "slrn -hk private.news.tld" suffice - ie ignore the score file > when reading from that server? Hmm. Probably. I do have positive scores to pick out threads I've posted in, but I can probably live without them. I didn't think about the -k flag being a solution, but it might work out just fine. > If your scorefile has some rules that you want to apply to all > newsgroups except those in the private.* hierarchy, use the tilde in the > line specifying the newsgroups - eg "[~ private.*]". > Or you can use the "~Newsgroup: private" line as part of the score > definition. That would take editing a *lot* of rules. > See the file score.txt which should have been included in your slrn > package. (Try /usr/share/doc/slrn/score.txt). Thanks, I'll read that again as it's been years. -- Of course, there were various groups seeking his overthrow, and this was right and proper and the sign of a vigorous and healthy society. No-one could call him unreasonable about the matter. Why, hadn't he founded most of them himself? And what was so beautiful was the way they spent nearly all their time bickering with one another. Human nature, the Patrician always said, was a marvelous thing. Once you understood where its levers were. --Guards! Guards!
Re: [slrn] Score file question
Author: Whiskers
Date: Sat, 07 Sep 2013 20:06
Date: Sat, 07 Sep 2013 20:06
26 lines
2313 bytes
2313 bytes
On 2013-09-07, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrnl2mr8p.2m1.catwheezel@ID-107770.user.individual.net> > Whiskers <catwheezel@operamail.com> wrote: >> On 2013-09-07, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: >>> In message <slrn20130907091053.181.twooffive@may.eternal-september.org> >>> Mike Yetto <myetto1@nycap.invalid> wrote: >>>> In a world where Lewis <g.kreme@gmail.com.dontsendmecopies> >>>> posts to Usenet. [...] >> See the file score.txt which should have been included in your slrn >> package. (Try /usr/share/doc/slrn/score.txt). > > Thanks, I'll read that again as it's been years. One scorefile can 'include' another, so if you could have two slrn config files, one specifying the scorefile containing only those scores you want to apply to the private.* groups, the other specifying a scorefile containing all the other scores and 'including' the first one. Then specify the appropriate config file in the launch command. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Score file question
Author: Peter J Ross
Date: Fri, 13 Sep 2013 00:30
Date: Fri, 13 Sep 2013 00:30
31 lines
1742 bytes
1742 bytes
In news.software.readers on Sat, 7 Sep 2013 12:37:52 +0000 (UTC), Lewis wrote: > I tried to create a score definition that would automatically add > 100 to any messages posted to a private newsserver. > > [private.*] > Score: 100 > From: * Try From: .* > this didn't work, but > > [private.*] > Score: 100 > From: bob@private.news > > Seemed to work for posts from bob. That's because it includes a meaningful regex. "*" (unlike ".*") isn't interpreted as being meaningful. -- PJR :-) πολλοῖς δ' ἀντιλέγειν μὲν ἔθος περὶ παντὸς ὁμοίως, ὀρθῶς δ' ἀντιλέγειν, οὐκέτι τοῦτ' ἐν ἔθει. (Euenus)
Re: [slrn] Score file question
Author: Peter J Ross
Date: Fri, 13 Sep 2013 00:42
Date: Fri, 13 Sep 2013 00:42
30 lines
1907 bytes
1907 bytes
In news.software.readers on 13 Sep 2013 00:30:46 GMT, Peter J Ross wrote: > In news.software.readers on Sat, 7 Sep 2013 12:37:52 +0000 (UTC), > Lewis wrote: > >> I tried to create a score definition that would automatically add >> 100 to any messages posted to a private newsserver. >> >> [private.*] >> Score: 100 >> From: * > > Try > From: .* Also try (without the "[private.*]" heading): Score: 100 Newsgroup: ^private\. See <http://slrn.sourceforge.net/docs/score.txt> for documentation of the special "Newsgroup" keyword. -- PJR :-) πολλοῖς δ' ἀντιλέγειν μὲν ἔθος περὶ παντὸς ὁμοίως, ὀρθῶς δ' ἀντιλέγειν, οὐκέτι τοῦτ' ἐν ἔθει. (Euenus)
Re: [slrn] Score file question
Author: Lewis
Date: Fri, 13 Sep 2013 15:12
Date: Fri, 13 Sep 2013 15:12
35 lines
2412 bytes
2412 bytes
In message <slrnl34n5m.64k.pjr@homeridae.org> Peter J Ross <pjr@homeridae.org> wrote: > In news.software.readers on Sat, 7 Sep 2013 12:37:52 +0000 (UTC), > Lewis wrote: >> I tried to create a score definition that would automatically add >> 100 to any messages posted to a private newsserver. >> >> [private.*] >> Score: 100 >> From: * > Try > From: .* >> this didn't work, but >> >> [private.*] >> Score: 100 >> From: bob@private.news >> >> Seemed to work for posts from bob. > That's because it includes a meaningful regex. "*" (unlike ".*") isn't > interpreted as being meaningful. "From: *" is a meaningful regex, it means "From:" followed by zero or more spaces. However, slrn's score file doesn't process that and needs the '.'. -- 'There's a kind of magic in masks. Masks conceal one face, but reveal another. The one that only comes out in darkness. I bet you could do just what you liked, behind a mask...?' --Maskerade
Re: [slrn] Score file question
Author: Peter J Ross
Date: Fri, 13 Sep 2013 22:33
Date: Fri, 13 Sep 2013 22:33
47 lines
2361 bytes
2361 bytes
In news.software.readers on Fri, 13 Sep 2013 15:12:07 +0000 (UTC), Lewis wrote: > In message <slrnl34n5m.64k.pjr@homeridae.org> > Peter J Ross <pjr@homeridae.org> wrote: >> In news.software.readers on Sat, 7 Sep 2013 12:37:52 +0000 (UTC), >> Lewis wrote: > >>> I tried to create a score definition that would automatically add >>> 100 to any messages posted to a private newsserver. >>> >>> [private.*] >>> Score: 100 >>> From: * > >> Try >> From: .* > >>> this didn't work, but >>> >>> [private.*] >>> Score: 100 >>> From: bob@private.news >>> >>> Seemed to work for posts from bob. > >> That's because it includes a meaningful regex. "*" (unlike ".*") isn't >> interpreted as being meaningful. > > > "From: *" is a meaningful regex, it means "From:" followed by zero or > more spaces. Correct. > However, slrn's score file doesn't process that and needs the '.'. Yes, slrn works just like all other newsreaders. The regex starts after the header name and obligatory space. -- PJR :-) πολλοῖς δ' ἀντιλέγειν μὲν ἔθος περὶ παντὸς ὁμοίως, ὀρθῶς δ' ἀντιλέγειν, οὐκέτι τοῦτ' ἐν ἔθει. (Euenus)
Re: [slrn] Score file question
Author: »Q«
Date: Fri, 13 Sep 2013 22:36
Date: Fri, 13 Sep 2013 22:36
44 lines
2393 bytes
2393 bytes
On Fri, 13 Sep 2013 15:12:07 +0000 (UTC) Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrnl34n5m.64k.pjr@homeridae.org> > Peter J Ross <pjr@homeridae.org> wrote: > > In news.software.readers on Sat, 7 Sep 2013 12:37:52 +0000 (UTC), > > Lewis wrote: > > >> I tried to create a score definition that would automatically add > >> 100 to any messages posted to a private newsserver. > >> > >> [private.*] > >> Score: 100 > >> From: * > > > Try > > From: .* > > >> this didn't work, but > >> > >> [private.*] > >> Score: 100 > >> From: bob@private.news > >> > >> Seemed to work for posts from bob. > > > That's because it includes a meaningful regex. "*" (unlike ".*") > > isn't interpreted as being meaningful. > > > "From: *" is a meaningful regex, it means "From:" followed by zero or > more spaces. In slrn's scorefile syntax, the regex begins *after* the name of the header, the colon, and the space. So in that example, the 'From: ' isn't part of any regex. > However, slrn's score file doesn't process that and needs > the '.'. And in this case, the regex '.' would be better than '.*' .
Re: [slrn] Score file question
Author: Peter J Ross
Date: Fri, 13 Sep 2013 22:49
Date: Fri, 13 Sep 2013 22:49
21 lines
1727 bytes
1727 bytes
In news.software.readers on Fri, 13 Sep 2013 17:36:20 -0500, »Q« wrote: > And in this case, the regex '.' would be better than '.*' . Why would it be better? Would "^." be better still? What about "^.*$"? IIRC, it's a question of how much of the string needs to be parsed in order to determine whether or not the regex matches. -- PJR :-) πολλοῖς δ' ἀντιλέγειν μὲν ἔθος περὶ παντὸς ὁμοίως, ὀρθῶς δ' ἀντιλέγειν, οὐκέτι τοῦτ' ἐν ἔθει. (Euenus)
Re: [slrn] Score file question
Author: »Q«
Date: Fri, 13 Sep 2013 23:26
Date: Fri, 13 Sep 2013 23:26
27 lines
2428 bytes
2428 bytes
On 13 Sep 2013 22:49:04 GMT Peter J Ross <pjr@homeridae.org> wrote: > In news.software.readers on Fri, 13 Sep 2013 17:36:20 -0500, »Q« > wrote: > > > And in this case, the regex '.' would be better than '.*' . > > Why would it be better? > > Would "^." be better still? > > What about "^.*$"? > > IIRC, it's a question of how much of the string needs to be parsed in > order to determine whether or not the regex matches. Yeah, that's it. Assuming the * is greedy in slang regex, '.*' would cause all of the characters in the header to be looked at, whereas '.' should cause only the first one to be looked at before moving on to the next scoring rule. For differences in efficiency between '^.' and '.' or between '^.*$' and '.*' , you'd have to ask JED, I think.
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