πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Felix Karpfen Sun, 11 May 2008 21:20
[slrn] Slrnpull scoring - was Editing and using the slrn score file
#220732
Author: Felix Karpfen
Date: Sun, 11 May 2008 21:20
50 lines
2290 bytes
It is possible that I asked the wrong question(s) because I did not
understand the slrnpull options.

I currently run "slrnpull --kill-score 0" and it is configured to
download only the headers of new postings.

Based on my observations:

- either "kill-score 0" does not apply to header-downloads;
- or I need guidance in writing simple regexes. 

 The following (annotated) extract from my current score file
 illustrates the problem:

| *existing entry*
| 
| %BOS
| [comp.editors]
| Score:: =-9999
| 	Subject: .*(Quinn|Tyler)  
| %EOS
| 
| *new entry*
| 
| %BOS
| %Score created by slrn on Sat May 10 10:23:56 2008
| 
| [comp.editors]
| Score: =-9999
| %Expires: 
| %	Subject: Hey, still under the rock Quinn Tyler Jackson\?
|   

If slrnpull had used the existing entry in the score file, it should not
have fetched the "May 10 header".  But it did, as the second entry in
the score file shows.

I would like to take this opportunity to thank Peter J Ross, W. Citoan
and andrew for their replies to my initial query.  Since I am a new
arrival to "slrn", the pointer to

http://slrn.sourceforge.net/macros/index.html

was particularly welcome.

Felix Karpfen
-- 
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
Re: [slrn] Slrnpull scoring - was Editing and using the slrn score file
#220734
Author: Christian Ebert
Date: Sun, 11 May 2008 22:10
28 lines
2046 bytes
Hi Felix,

* Felix Karpfen on Sunday, May 11, 2008:
> - either "kill-score 0" does not apply to header-downloads;
> - or I need guidance in writing simple regexes. 
> 
> The following (annotated) extract from my current score file
> illustrates the problem:
> 
>| *existing entry*
>| 
>| %BOS
>| [comp.editors]
>| Score:: =-9999
>| Subject: .*(Quinn|Tyler)  

The score file expects the S-Lang regex dialect which doesn't
support the OR operator.

You can find out more about S-Lang regex in the slang.txt file
that is hopefully part of the docs of your distribution.

c
-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]

_F R E E_  _V I D E O S_  -->>  http://www.blacktrash.org/underdogma/
Re: [slrn] Slrnpull scoring - was Editing and using the slrn score file
#220735
Author: Troy Piggins
Date: Sun, 11 May 2008 22:18
80 lines
3962 bytes
* Felix Karpfen wrote:
> It is possible that I asked the wrong question(s) because I did not
> understand the slrnpull options.
>
> I currently run "slrnpull --kill-score 0" and it is configured to
> download only the headers of new postings.
>
> Based on my observations:
>
> - either "kill-score 0" does not apply to header-downloads;
> - or I need guidance in writing simple regexes. 
>
>  The following (annotated) extract from my current score file
>  illustrates the problem:
>
>| *existing entry*
>| 
>| %BOS
>| [comp.editors]
>| Score:: =-9999
>| 	Subject: .*(Quinn|Tyler)  
                  ^^^^^^^^^^^^^^
Don't think you can use logical "OR" expressions here.  SLRN
doens't use regexes.

[comp.editors]
Score:: =-9999
Subject:.*Quinn
Subject:.*Tyler

Read the manual about what the difference between Score: and
Score::

Also might like to note that the patterns are case insensitive by
default.  To force case sensitivity use the "\c" switch.  Your
rule would also catch "quinn" in the subject.

Another point would be word boundaries.  Your rule would also
match "quinntessential" (a misspelling I know).  "\<" and "\>"
delimit words.

[comp.editors]
Score:: =-9999
Subject:.*\c\<Quinn\>
Subject:.*\c\<Tyler\>

Pretty sure this will only catch the individual words Quinn or
Tyler in the subject, and only if they start with capital.

>| %EOS
>| 
>| *new entry*
>| 
>| %BOS
>| %Score created by slrn on Sat May 10 10:23:56 2008
>| 
>| [comp.editors]
>| Score: =-9999
>| %Expires: 
>| %	Subject: Hey, still under the rock Quinn Tyler Jackson\?
>
> If slrnpull had used the existing entry in the score file, it should not
> have fetched the "May 10 header".  But it did, as the second entry in
> the score file shows.
>
> I would like to take this opportunity to thank Peter J Ross, W. Citoan
> and andrew for their replies to my initial query.  Since I am a new
> arrival to "slrn", the pointer to
>
> http://slrn.sourceforge.net/macros/index.html
>
> was particularly welcome.

Hope that helps.

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
                                                             |___  | |/   |/  |
                                                              ___| | |    |   |
                                                                         
Re: [slrn] Slrnpull scoring - was Editing and using the slrn score file
#220736
Author: Tom Newton
Date: Sun, 11 May 2008 22:21
51 lines
2002 bytes
On 2008-05-11, in <slrng2cf3h.655.felixk@carrot.cabbage.patch>
Felix Karpfen <felixk@webone.com.au> wrote:


> It is possible that I asked the wrong question(s) because I did not
> understand the slrnpull options.
>
> I currently run "slrnpull --kill-score 0" and it is configured to
> download only the headers of new postings.
>
> Based on my observations:
>
> - either "kill-score 0" does not apply to header-downloads;
> - or I need guidance in writing simple regexes. 
>
>  The following (annotated) extract from my current score file
>  illustrates the problem:
>
>| *existing entry*
>| 
>| %BOS
>| [comp.editors]
>| Score:: =-9999
>| 	Subject: .*(Quinn|Tyler)  
>| %EOS


[comp.editors]
Score:: =-9999
Subject: .*Quinn
Subject: .*Tyler

Like Christian said, you need to study slang regexes:

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

The :: gives you the equivalent of |

As an aside, I used slrnpull for a while.

Leafnode is better by far.

<snip>

Tom


-- 
The Truth will set you free:
http://www.sethcenter.com
Re: [slrn] Slrnpull scoring - was Editing and using the slrn score file
#220789
Author: Felix Karpfen
Date: Tue, 13 May 2008 21:56
53 lines
2237 bytes
On 2008-05-11, Tom Newton <tom@server.invalid> wrote:
> On 2008-05-11, in <slrng2cf3h.655.felixk@carrot.cabbage.patch>
> Felix Karpfen <felixk@webone.com.au> wrote:
>
>>
>> Based on my observations:
>>
>> - or I need guidance in writing simple regexes. 

At least that part of the diagnosis was correct!

As Christian's answer amply demonstrates.
Back to the drawing board (Jeffrey E F Friedl)!
>>
>
> Like Christian said, you need to study slang regexes:
>
> http://www.s-lang.org/doc/html/slang-22.html
>
I am grateful for that pointer.  

> As an aside, I used slrnpull for a while.
>
> Leafnode is better by far.

I tried "Leafnode" (several years ago) and threw in the towel at its
efforts to identify and download marked headers - a feature which slrn
did not offer at that time.

Maybe - with the new-look slrn - Leafnode is worth another look :-).

But slrnpull is now doing what it should; I scored my first successful
"kill" today:

"05/13/2008 08:08:32 comp.editors: 16/16 (1 killed), Time: 00:00:14,
BPS: 6559"  

My thanks to both you and Christian for the help.

Felix Karpfen

>
><snip>
>
> Tom
>
>


-- 
Felix Karpfen
Public Key 72FDF9DF (DH/DSA)
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