Article View: news.software.readers
Article #47808Re: slrnpull - scoring non alphanumeric characters in subject
From: Mediocrates
Date: Tue, 06 Apr 1999 00:00
Date: Tue, 06 Apr 1999 00:00
61 lines
2971 bytes
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.
Technical Details
Message-ID:
<Wp4O2.156$dQ5.1463@nswpull.telstra.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<370867F6.C70A21F8@Medusa.picknowl.com.au> <Vi2O2.211$Ry4.456@news.get2net.dk>Show Full Headers
Complete Article Headers
Message-ID: <Wp4O2.156$dQ5.1463@nswpull.telstra.net> Subject: Re: slrnpull - scoring non alphanumeric characters in subject Date: Tue, 06 Apr 1999 00:00:00 +0000 From: Mediocrates <Mediocrates@don'tbother.spammingme> References: <370867F6.C70A21F8@Medusa.picknowl.com.au> <Vi2O2.211$Ry4.456@news.get2net.dk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 462889437 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telstra.net X-Trace: nswpull.telstra.net 923325174 203.38.162.83 (Tue, 06 Apr 1999 01:12:54 EST) Organization: Why Me? Inc. MIME-Version: 1.0 NNTP-Posting-Date: Tue, 06 Apr 1999 01:12:54 EST Newsgroups: news.software.readers