🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Even Holen Sat, 14 Jun 1997 00:00
Question on scoring in slrn!
#34205
Author: Even Holen
Date: Sat, 14 Jun 1997 00:00
33 lines
1639 bytes
In my score-file I have the following lines:
[news.groups]
Score:: 9999
        Subject: RFD: comp\.lang\.perl reorganization

Score:: -9999
        Subject: .
        ~Subject: .

The purpose was to kill everything which isn't on the subject of
reorganization of clp. This does function quite well, but I've noticed a
side effect which I didn't like.  When I tried to read the newsgroups 
news.groups.question and news.groups.review every article in these 
groups were killed as well.

In other words it seems like the matching on the text between the [] is
a substring of the newsgroup name, and not the total name which I
suspected it to be.

So my question is whether anyone care to explain how to make this
scoring specific to news.groups, and _not_ to news.groups.* ?? Is this a
bug, or something I've overseen in the documentation?

I'm using and older version of slrn, ver. 0.9.2.1. If this is corrected
somehow in a newer version, please do notify me!

Regards,
Even Holen 
-- 
<><   Even Holen, evenh@pvv.ntnu.no, http://www.pvv.ntnu.no/~evenh/   :-)

Re: Question on scoring in slrn!
#34241
Author: Pardoz
Date: Mon, 16 Jun 1997 00:00
47 lines
2109 bytes
On Sat, 14 Jun 1997 23:37:47 -0500, J.B. Nicholson-Owens
<jbn@pop-a-wheelie.midwest.net> wrote:

[Missed the original, so I'm following-up a follow-up]

>Even Holen <evenh@bigblue.pvv.ntnu.no> wrote:
>> I'm using and older version of slrn, ver. 0.9.2.1. If this is corrected
>> somehow in a newer version, please do notify me!
>
>Suggestion 1: Always use the latest version of a program before declaring
>	      something to be buggy.

     The buglet's still there in 0.9.4.0.

>If all you want to see is just the comp.lang.perl reorg stuff, there's no
>need to mark it high, just kill everything else.

     Unfortunately this will also kill everything else in the
news.groups.* hierarchy.

     Alternate suggestion:
     [news.groups]
     Score: -1
     ~Subject: RFD: comp\.lang\.perl reorganization
     
     [news.groups.foo]
     Score: 1
     Subject: .

     [news.groups.bar]
     Score: 1
     Subject: .

     etc. for any groups you want to read under news.groups.*.  This
marks everything but the reorg read in news.groups but doesn't touch
anything else.

     'Tain't perfect, but it's a workable kludge for the nonce.

-- 
RIOT, n.  A popular entertainment given to the military by innocent 
bystanders.	       (A. Bierce, _The Devil's Dictionary_)
http://www.io.com/~pardoz (Liaden Universe mailing list home page)
http://www.io.com/~pardoz/mythos.html (Mythos Adventure Archive)

Re: Question on scoring in slrn!
#34245
Author: Even Holen
Date: Mon, 16 Jun 1997 00:00
48 lines
2575 bytes
In article <slrn5q6s8f.au4.jbn@pop-a-wheelie.midwest.net>, J.B. Nicholson-Owens wrote:
>Even Holen <evenh@bigblue.pvv.ntnu.no> wrote:
>> I'm using and older version of slrn, ver. 0.9.2.1. If this is corrected
>> somehow in a newer version, please do notify me!
>
>Suggestion 1: Always use the latest version of a program before declaring
>	      something to be buggy.  The latest released slrn is version
>	      0.9.4.0.  Note I'm not saying this isn't buggy in 0.9.4.0, I'm
>	      saying you should check it out in that version first.

I will, but I have not had the time to compile the latest version
yet...

>> In my score-file I have the following lines:
>> [news.groups]
>> Score:: 9999
>>         Subject: RFD: comp\.lang\.perl reorganization
>> 
>> Score:: -9999
>>         Subject: .
>>         ~Subject: .
>
>Suggestion 2: Simplify your score file; it'll run faster and be easier to
>	      debug.  Months from now when you've forgotten why you did what
>	      you did in your slrn score file, a simple score file will be
>	      easier to figure out.

The reason for the somewhat complex score-file (easy compared to the
default given by slrn :-) )  is that in some other newsgroups I do need
the logical or to pick out the articles I do want to read. And then I
needed to kill everything else, and I found that using just 'Subject: .'
was not sufficient so therefore I added the inverse as well. If you do
have a score-entry which says kill everything which isn't scored already
I would welcome this entry...

Thanks for the reminder on using =-9999, just a slip from my side... :(

Has also noted your trick about using 'Newsgroup: ^...$', but I think
this ought to be avoided. Has anyone tested whether this is indeed
necessary in the latest version of slrn?

Regards,
Even Holen
-- 
<><   Even Holen, evenh@pvv.ntnu.no, http://www.pvv.ntnu.no/~evenh/   :-)

Re: Question on scoring in slrn!
#34290
Author: Jan Hlavacek
Date: Tue, 17 Jun 1997 00:00
38 lines
1503 bytes
On 16 Jun 1997 05:14:57 GMT, Pardoz <pardoz@io.com> wrote:
>On Sat, 14 Jun 1997 23:37:47 -0500, J.B. Nicholson-Owens
><jbn@pop-a-wheelie.midwest.net> wrote:
>
>     Unfortunately this will also kill everything else in the
>news.groups.* hierarchy.
>
>     Alternate suggestion:
>     [news.groups]
>     Score: -1
>     ~Subject: RFD: comp\.lang\.perl reorganization
>     
>     [news.groups.foo]
>     Score: 1
>     Subject: .
>
>     [news.groups.bar]
>     Score: 1
>     Subject: .


Wouldn't something like

     [news.groups.*]
     Score: 1
        Subject: .

work?

lahvak
-- 
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu  (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/  is back!


Re: Question on scoring in slrn!
#34300
Author: Bjoern Frantzen
Date: Tue, 17 Jun 1997 00:00
46 lines
2287 bytes
J.B. Nicholson-Owens <jbn@pop-a-wheelie.midwest.net> wrote:

>Pardoz <pardoz@io.com> wrote:
>>      Alternate suggestion:
>[adding score entries for all subhierarchies to avoid the [<newsgroups>]
> bug...]
>
>That is a good idea.  Unfortunately it may require scorefile maintenance
>when new newsgroups are added.  I offer another suggestion (with a new set
>of problems):
>
>[news.groups] % To score only on the newsgroup "news.groups"
>    Score: =-9999
>	 ~Subject: RFD: comp\.lang\.perl reorganization
>	Newsgroup: ^news\.groups$
>
>This should kill everything except the posts deemed interesting in a
>previous article.

Except that most article in the actual group is crossposted to the
group in discussion.....

[news.groups]
    Score: =-9999
        ~Subject: Subject we want to read.
        ~Xref: news\.groups\.\*

This will make an AND filter which should only kill messages as long as
they do _not_ have the right subject AND are _not_ in the right group.

This will fail if the message are crossposted to other news.group.*,
but after a quick search, none of the first 200 messages I checked are
cross-posted between news.groups and news.groups.*.

>else if you want some subhierarchies but not others.  When the bug is fixed,
>you should be able to remove the Newsgroup: line and continue using the

It's not a bug, just a undocumented feature... ;-)

-- 
      -<  Bj�rn  >-                             slrn for OS/2 are available at
                                         http://www.bgnett.no/~bjoff/slrn.html


Re: Question on scoring in slrn!
#34317
Author: John E. Davis
Date: Wed, 18 Jun 1997 00:00
49 lines
1494 bytes
On 16 Jun 1997 05:14:57 GMT, Pardoz <pardoz@io.com>
wrote:
>     The buglet's still there in 0.9.4.0.

In slrn/src/util.c, replace the function `slrn_fix_regexp' with this:

char *slrn_fix_regexp (char *pat)
{
   static char newpat[256];
   char *p, ch;
   unsigned int len;

   len = 1;			       /* For ^ */
   p = pat;
   while (*p != 0)
     {
	if ((*p == '.') || (*p == '*')) len++;
	len++;
	p++;
     }
   len++;			       /* for $ */
   len++;			       /* for \0 */

   if (len > sizeof(newpat))
     slrn_exit_error ("Pattern too long for buffer");
     
   p = newpat;

   *p++ = '^';
   while ((ch = *pat++) != 0)
     {
	if (ch == '.')
	  *p++ = '\\';
	else if (ch == '*')
	  *p++ = '.';

	*p++ = ch;
     }
   
   if (*(p - 1) != '$') 
     *p++ = '$';

   *p = 0;

   return newpat;
}

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