Thread View: news.software.readers
4 messages
4 total messages
Started by lottifran
Wed, 08 Apr 1998 00:00
[slrn] Scoring doesn't work
Author: lottifran
Date: Wed, 08 Apr 1998 00:00
Date: Wed, 08 Apr 1998 00:00
27 lines
1618 bytes
1618 bytes
Here is the incriminated section of my SCORE file:
[~ *binari*, *pictures*]
Score:: -9999
Subject: \.jpg
Subject: \.gif
Subject: \.GIF
Subject: \.jpeg
Subject: \.JPG
Subject: \.JPEG
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?
ciao,
--
**** To reply remove +!XXX! from the address ****
[ Francesco L. <goo@ouverture.it> ][ Powered by Linux 2.0.33 ]
[ Alternate address: didefault@usa.net ][ http://goo.home.ml.org ]
[ Dynamic hostname: artemide.dyn.ml.org ][ ICQ UIN: 10640395 ]
[ To get my PGP PUBLIC KEY send a message to goo+PGP@ouverture.it ]
Re: [slrn] Scoring doesn't work
Author: Peppe
Date: Thu, 09 Apr 1998 00:00
Date: Thu, 09 Apr 1998 00:00
31 lines
1782 bytes
1782 bytes
Thus wrote lottifran <goo+!XXX!@ouverture.it> > Here is the incriminated section of my SCORE file: > [~ *binari*, *pictures*] > Score:: -9999 > Subject: \.jpg > Subject: \.gif > Subject: \.GIF > Subject: \.jpeg > Subject: \.JPG > Subject: \.JPEG > 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. Peppe -- Preben Guldberg __/-\__ "Its not the size of the dog in c928400@student.dtu.dk (o o) the fight, its the size of the -------------------------oOOo (_) oOOo--- fight in the dog." http://www.student.dtu.dk/~c928400 --Mark Twain
Re: [slrn] Scoring doesn't work
Author: Peppe
Date: Fri, 10 Apr 1998 00:00
Date: Fri, 10 Apr 1998 00:00
31 lines
2047 bytes
2047 bytes
Thus wrote Jan Hlavacek <lahvak@math.mps.ohio-state.edu> > 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. Thanks a bundle! I'll give it a test. Peppe -- Preben Guldberg __/-\__ Michael Bolton said yesterday he now c928400@student.dtu.dk (o o) wants to become an opera singer. Which ---------------------oOOo (_) oOOo- is great, because now my Dad and I can http://www.student.dtu.dk/~c928400 hate the same kind of music.
Re: [slrn] Scoring doesn't work
Author: 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/
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