🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Mediocrates Mon, 05 Apr 1999 00:00
slrnpull - scoring non alphanumeric characters in subject
#47756
Author: Mediocrates
Date: Mon, 05 Apr 1999 00:00
28 lines
1499 bytes
Does anyone know how to score non alphanumeric characters like - or ? in
the slrnpull score file?
For example to give a 500 score to articles with the subject ds-mm I've
used :

Score: 500
  Subject: ds
  Subject: mm

But this pulls in articles that I don't want. Also giving a score of 500
to articles
with Subject: ds-mm doesn't work, since it seems to think - is a range
symbol.
Any suggestions?

		Thanks,
	
			Matt.  



-- 
"Every program has at least one bug and can be shortened by at least one
 instruction -- from which, by induction, one can deduce that every
 program can be reduced to one instruction which doesn't work."
                -- Anon.

Re: slrnpull - scoring non alphanumeric characters in subject
#47770
Author: Frank Hahn
Date: Mon, 05 Apr 1999 00:00
26 lines
1550 bytes
On Mon, 05 Apr 1999 17:06:22 +0930, Mediocrates
<mrhooper@Medusa.picknowl.com.au> wrote:
>Does anyone know how to score non alphanumeric characters like - or ? in
>the slrnpull score file?
>For example to give a 500 score to articles with the subject ds-mm I've
>used :
>
>Score: 500
>  Subject: ds
>  Subject: mm
>
>But this pulls in articles that I don't want. Also giving a score of 500
>to articles
>with Subject: ds-mm doesn't work, since it seems to think - is a range
>symbol.
>
I don't think the score file for slrnpull can do this.  I think
you can only kill posts that you are downloading.

I believe you will need to set up what you want to do in the score
file for slrn.

-- 
Frank Hahn

Re: slrnpull - scoring non alphanumeric characters in subject
#47780
Author: John E. Davis
Date: Mon, 05 Apr 1999 00:00
21 lines
1685 bytes
On Tue, 06 Apr 1999 00:44:39 +0930, Mediocrates <Mediocrates@don'tbother.spammingme>
wrote:
>Your first suggestion doesn't work since I suspect it doesn't look for
>the string ds-mm anywhere on the line, but expects it to be spaced out.
>I'm trying just plain old
>Subject: ds-mm to see if it works. BTW can anyone point me in the

   Using  `Subject: ds-mm' will match subjects that contain "ds-mm".

>direction of a larger source of slrnpull score grammar other than the
>FAQ that comes with slrnpull?

   There is currently no other document, other than the definitive
document slrn/src/score.c.  For more information about the syntax of
the regular expressions, see

   http://space.mit.edu/%7Edavis/doc/slang/doc/html/slang-18.html

--John

Re: slrnpull - scoring non alphanumeric characters in subject
#47802
Author: Krzysztof P. Jasiutowicz
Date: Tue, 06 Apr 1999 00:00
18 lines
1535 bytes
On Tue, 06 Apr 1999 00:44:39 +0930, Mediocrates
<Mediocrates@don'tbother.spammingme> wrote:
>Your first suggestion doesn't work since I suspect it doesn't look for
>the string ds-mm anywhere on the line, but expects it to be spaced out.
>I'm trying just plain old
>Subject: ds-mm to see if it works. BTW can anyone point me in the
>direction of a larger source of slrnpull score grammar other than the
>FAQ that comes with slrnpull?
Possibly this page could clear things up :
http://www.math.ohio-state.edu/~lahvak/software/slang/regexps.html
Regards,
kpj.	
-- 
Krzysztof P. Jasiutowicz, M.D     | Czestochowa, Poland ...
kpjas@priv.onet.pl @box43.gnet.pl | Linux 2.0.36 Red Hat 5.2 KDE 1.1
http://friko.onet.pl/cz/kpjas/    | mutt 0.95i VIM 5.4g slrn 0.9.5.4 ...

Re: slrnpull - scoring non alphanumeric characters in subject
#47808
Author: Mediocrates
Date: Tue, 06 Apr 1999 00:00
61 lines
2971 bytes
ras2 wrote:
> 
> On Mon, 05 Apr 1999 17:06:22 +0930, Mediocrates
> <mrhooper@Medusa.picknowl.com.au> wrote in
> <370867F6.C70A21F8@Medusa.picknowl.com.au>:
> > For example to give a 500 score to articles with the subject ds-mm I've
> > used :
> >
> > Score: 500
> >   Subject: ds
> >   Subject: mm
> >
> > But this pulls in articles that I don't want. Also giving a score of 500
> > to articles with Subject: ds-mm doesn't work, since it seems to think -
> > is a range symbol.
> 
> Try this:
>         Subject: \<ds-mm\>
> The hyphen shouldn't be a problem as it /should/ be scored as
> a normal character, but if it still isn't, you could try
> "\<ds\-mm\>" (I doubt that works, though).
> Or
>         Subject: \<ds
>         Subject: mm\>
> As a last resort should give less false positives. "\<" means it
> will match the start of the word, while "\>" will match the end.
> 
> I use a hyphen in many of my scorefile entries without problems,
> so something odd is going on. I believe it should only work as
> a range character if enclosed in brackets, like [0-9].
> 
> To avoid the hyphen, you could try "\<ds.+mm\>", but I have no idea
> if I'm understanding the regexps correctly ('.' should match any
> character, while '+' should match the previous regexp one or more
> times, so it ought to work. In theory). "\<ds.mm\>" may work too.
> 
> -R.
> --
> This space unintentionally left blank.

Your first suggestion doesn't work since I suspect it doesn't look for
the string ds-mm anywhere on the line, but expects it to be spaced out.
I'm trying just plain old
Subject: ds-mm to see if it works. BTW can anyone point me in the
direction of a larger source of slrnpull score grammar other than the
FAQ that comes with slrnpull?


		Thanks again,

				Matt.
	


-- 
"Every program has at least one bug and can be shortened by at least one
 instruction -- from which, by induction, one can deduce that every
 program can be reduced to one instruction which doesn't work."
                -- Anon.

Re: slrnpull - scoring non alphanumeric characters in subject -thanks everyone
#47817
Author: Mediocrates
Date: Wed, 07 Apr 1999 00:00
15 lines
1445 bytes
Thanks to everyone who offered suggestions and pointers. I've looked at
the pointers and suggestions, and they've made my score file much less
cluttered.

		Thanks,

			Matt.

-- 
"Every program has at least one bug and can be shortened by at least one
 instruction -- from which, by induction, one can deduce that every
 program can be reduced to one instruction which doesn't work."
                -- Anon.

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