Article View: news.software.readers
Article #40074Re: [slrn] Scoring doesn't work
From: Jan Hlavacek
Date: Fri, 10 Apr 1998 00:00
Date: Fri, 10 Apr 1998 00:00
66 lines
2818 bytes
2818 bytes
On 9 Apr 98 00:48:41 GMT, Peppe <c928400@student.dtu.dk> wrote:
> Thus wrote lottifran <goo+!XXX!@ouverture.it>
> > Here is the incriminated section of my SCORE file:
>
> > [~ *binari*, *pictures*]
> > Score:: -9999
(snip)
> > With this recipe slrn kills articles which hopefully contain images in
> > ALL newsgroups even in *binari* and *pictures* ngs.
> > I've found that if I write i.e. [~ *binari*] then articles in these
> > newsgroups are not killed while [~ *binari*, *pictures*] doesn't work.
> > So what should I do? Write different recipes for every newsgroup?
>
> I think it is nescessary (for the moment) to deal with them seperatly.
> I reported this same behaviour a while ago, unfrtunaetely without
> response.
Here is a quick fix: patch score.c with this patch.
--- score.c.or Thu Apr 9 14:56:00 1998
+++ score.c Fri Apr 10 04:20:03 1998
@@ -496,24 +496,28 @@
match = ((re->min_length <= n)
&& (NULL != SLang_regexp_match ((unsigned char *) group_name, n, re)));
- /* Note: the following could be replaced by simply
- * match = (match ^ gst_not_flag);
- * however, I may have more uses for this flag in the future.
- */
- match = ((match && (gst_not_flag == 0))
- || ((match == 0) && gst_not_flag));
-
if (match)
{
+ if (!gst_not_flag)
+ {
if (-1 == chain_group_regexp (gsc->pst, &generic))
{
free_group_chain ();
return -1;
}
+ }
break;
}
gsnt = gsnt->next;
}
+ if (gst_not_flag && (gsnt == NULL)) /* none of them matched */
+ {
+ if (-1 == chain_group_regexp (gsc->pst, &generic))
+ {
+ free_group_chain ();
+ return -1;
+ }
+ }
gsc = gsc->next;
}
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Technical Details
Message-ID:
<slrn6irmf8.p7m.lahvak@math.mps.ohio-state.edu>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:
<slrn6ineal.j2b.goo+!XXX!@artemide.section9.net> <slrn6io6oh.13r.c928400@urdybet.bergsoe.dtu.dk>Show Full Headers
Complete Article Headers
Message-ID: <slrn6irmf8.p7m.lahvak@math.mps.ohio-state.edu> Subject: Re: [slrn] Scoring doesn't work Date: Fri, 10 Apr 1998 00:00:00 +0000 From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek) References: <slrn6ineal.j2b.goo+!XXX!@artemide.section9.net> <slrn6io6oh.13r.c928400@urdybet.bergsoe.dtu.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: 342684222 Reply-To: lahvak@math.mps.ohio-state.edu Organization: Department of Mathematics, The Ohio State University Newsgroups: news.software.readers