Thread View: news.software.readers
9 messages
9 total messages
Started by Jens Wahnes
Tue, 11 May 1999 00:00
[slrn] scoring problems / bugs
Author: Jens Wahnes
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
57 lines
2976 bytes
2976 bytes
Since I recently updated my scorefile, I noticed several problems
with scoring in some special cases. For example, I have the following
lines in my scorefile (abrigded):
[*]
Score:: +500
From: T�ns B�ker
From: Ulli Horlacher
From: Urs Jan�en
[de.comp.os.unix.linux.*]
Score: -100
~From: [ ]+[^ ]+[ ]+
I wasn't sure if the first ruleset would work since it contains names
with special character such as umlauts that are normally encoded in
there From-lines according to RFC 2045ff. I've been using it for a
long time without any problems, so I thought the scoring happens
after decoding the header lines. Now I added the second ruleset
recently which is supposed to filter out posts without full names
(From-lines with full names always contain at least two spaces).
But this doesn't work as supposed.
When scoring an article with the following From-line:
From: toens@stingray.highway.bertelsmann.de (=?iso-8859-1?Q?T=F6ns=20B=FCker?=)
(note that the part in the parantheses is the represenation of one of
the names in the first ruleset) this article gets a negative score!
Not only does the second rule fail, but also the first one that would
assign this article a high score. Why?
Thinking about this, I came to the conclusion that slrn maybe handles
scoring differently if there are regular expressions involved, i.e.
in case there are no REs present, the header is first decoded and
then scored but when there are REs, the scoring takes place before
decoding. Is this true? If so, could this be changed?
Another, completely different thing: I read in changes.txt that the
routine for reconstructiong threads has changed since 0.9.5.4. slrn
0.9.5.5 doesn't reconstuct threads with "killed" articles anymore.
I'd consider that a bug. If that is a feature, I suggest to make
this configurable via .slrnrc. I don't think it's a good idea to be
unable to reconstuct threads just because some article in between got
killed.
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Re: [slrn] scoring problems / bugs
Author: John E. Davis
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
22 lines
1607 bytes
1607 bytes
On 11 May 1999 18:44:02 GMT, Jens Wahnes <jewa@gmx.net> wrote: >Score:: +500 > From: T�ns B�ker > From: Ulli Horlacher > From: Urs Jan�en > >[de.comp.os.unix.linux.*] >Score: -100 > ~From: [ ]+[^ ]+[ ]+ I tested this and it worked fine for me. Remove all other scores from your score file except the above two and then see if it works. If so, then your score file contains other scores that are affecting the final score. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 One Hampshire St., Building NE80-6019 http://space.mit.edu/~davis Cambridge, MA 02139-4307
Re: [slrn] scoring problems / bugs
Author: Jens Wahnes
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
34 lines
1951 bytes
1951 bytes
John E. Davis wrote:
> I was also unable to duplicate the problem. The scores you posted
> worked fine.
That is weird. I tried this on a different account on my own linux
box as well as on another account on an AIX machine with slrn
0.9.5.4. In both cases, the problem occured.
For example, with only the two rulesets I mentioned in my last post
in the scorefile, the article
<slrn7jcu6d.p61.toens@stingray.highway.bertelsmann.de> (it's a little
old -- it was posted to de.comp.os.unix.linux.newusers on 10 May 1999
06:12:29 GMT) gets a negative score for no apparent reason
whatsoever.
Could this have something to do with the version of s-lang? I only
have s-lang 1.2.2 installed.
> See slrn/doc/score.txt for the reasons why `Newsgroup' is preferred over
> `Newsgroups' for performance reasons.
Thanks, I wasn't aware of that. (Actually, I haven't been suffering
from bad performance of slrn yet. :-)
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Re: [slrn] scoring problems / bugs
Author: John E. Davis
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
27 lines
1605 bytes
1605 bytes
On 12 May 1999 18:29:33 GMT, Jens Wahnes <jewa@gmx.net>
wrote:
>The correct scorefile entries which give me the strange behavior
>(including not being able to reconstruct threads with killed
>articles) that I described in the other posting are these:
I was also unable to duplicate the problem. The scores you posted
worked fine.
>[de.*]
>Score: -100
> ~From: [ ]+[^ ]+[ ]+
> ~Newsgroups: de.newusers.questions
I would modify this score to:
[de.*]
Score: -100
~From: [ ]+[^ ]+[ ]+
~Newsgroup: de.newusers.questions
See slrn/doc/score.txt for the reasons why `Newsgroup' is preferred over
`Newsgroups' for performance reasons.
--John
Re: [slrn] scoring problems / bugs
Author: Thomas Schultz
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
34 lines
1711 bytes
1711 bytes
On 12 May 1999, Jens Wahnes <jewa@gmx.net> wrote:
> [de.*]
> Score: -100
> ~From: [ ]+[^ ]+[ ]+
> ~Newsgroups: de.newusers.questions
I also don't see why this should not work - maybe it is indeed a bug
in slrn. However, I think I can offer two working alternatives that
don't require "expensive" scoring and do what you want:
First possibility: Simply use the key word 'Newsgroup:' (note the
missing 's') to find out which group you're currently in:
[de.*]
Score: -100
~From: [ ]+[^ ]+[ ]+
~Newsgroup: de\.newusers\.questions
Second possibility: Use "~de.newusers.questions" as the scope and
check the XRef:-Header to see if you're in de.* :
[~de.newusers.questions]
Score: -100
~From: [ ]+[^ ]+[ ]+
XRef: \ de\.
HTH.
--
Kind regards,
Thomas Schultz
Re: [slrn] scoring problems / bugs
Author: Jens Wahnes
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
46 lines
2473 bytes
2473 bytes
John E. Davis wrote:
> I tested this and it worked fine for me. Remove all other scores from
> your score file except the above two and then see if it works. If so, then
> your score file contains other scores that are affecting the final
> score.
Sorry, my fault! Of course, I tested this extensively before posting
it. After a while of experimenting, I had so many different
scorefiles that I somehow copy&pasted from the wrong scorefile. 8-(
The correct scorefile entries which give me the strange behavior
(including not being able to reconstruct threads with killed
articles) that I described in the other posting are these:
[de.*]
Score: -100
~From: [ ]+[^ ]+[ ]+
~Newsgroups: de.newusers.questions
[*]
Score:: +500
From: T�ns B�ker
From: Ulli Horlacher
From: Urs Jan�en
Even more testing <g> showed me that the line "~Newsgroups:
de.newusers.questions" is causing all the trouble. Is there a logic
error on my side? My idea was to give articles without a "full name"
a low score unless they are posted to the newusers group. I guess
this could be accomplished by putting [~de.newusers.questions] in
front of the ruleset as well, but then this would apply to all
hierarchies, not just de.*. Is there another way of accomplishing
what I'm trying to do? And why does the ruleset above cause so many
problems?
TIA
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Re: [slrn] scoring problems / bugs
Author: Gottfried Schwieters
Date: Thu, 13 May 1999 00:00
Date: Thu, 13 May 1999 00:00
52 lines
2508 bytes
2508 bytes
Hi!
John E. Davis meinte am 12 May 1999 21:48:09 GMT:
> On 12 May 1999 18:29:33 GMT, Jens Wahnes <jewa@gmx.net>
> wrote:
> >The correct scorefile entries which give me the strange behavior
> >(including not being able to reconstruct threads with killed
> >articles) that I described in the other posting are these:
>
> I was also unable to duplicate the problem. The scores you posted
> worked fine.
With me, I am able to reproduce all the described problems exactly
as Jens said. Slrn is 0.9.5.5, news is read via NNTP, contacted
newsserver is INN 2.2, os is Linux 2.2.8.
Perhaps some special (german) environment/locale-settings are
necessary for reproducing this problem?
> >[de.*]
> >Score: -100
> > ~From: [ ]+[^ ]+[ ]+
> > ~Newsgroups: de.newusers.questions
>
> I would modify this score to:
>
> [de.*]
> Score: -100
> ~From: [ ]+[^ ]+[ ]+
> ~Newsgroup: de.newusers.questions
The interesting thing here is, that this also solves the described
scoring-Problem.
I assume, that the problem occurs, when scoring must be done on a
header that is not in the .overview.
All is fine, when scoring (of all entries in the scorefile) can be
done based on the News-Overview.
Is this possible?
Gru�,
Gottfried.
--
Gottfried Schwieters __o <===|
D-44137 Dortmund _o/\<,_ |==>
PGP-Info im Header (U)/ (u) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: [slrn] scoring problems / bugs
Author: John E. Davis
Date: Thu, 13 May 1999 00:00
Date: Thu, 13 May 1999 00:00
42 lines
1963 bytes
1963 bytes
On 13 May 1999 10:53:26 GMT, Gottfried Schwieters <Gottfried.Schwieters@gmx.de>
wrote:
>All is fine, when scoring (of all entries in the scorefile) can be
>done based on the News-Overview.
>Is this possible?
I think that you diagnosed the problem. Please substitute replace
the process_xover function in art.c with the following version:
static Slrn_Header_Type *process_xover (Slrn_XOver_Type *xov)
{
Slrn_Header_Type *h;
h = (Slrn_Header_Type *) slrn_safe_malloc (sizeof (Slrn_Header_Type));
slrn_map_xover_to_header (xov, h);
#if SLRN_HAS_MIME
if (Slrn_Use_Mime)
{
slrn_rfc1522_decode_string (h->subject);
slrn_rfc1522_decode_string (h->from);
}
#endif
if ((Slrn_Score_After_XOver == 0) && Perform_Scoring)
{
if (NULL == (h = apply_score (h)))
return h;
}
#if SLRN_HAS_GROUPLENS
if (Slrn_Use_Group_Lens)
{
h->gl_rating = h->gl_pred = -1;
}
#endif
return h;
}
Re: [slrn] scoring problems / bugs
Author: Gottfried Schwieters
Date: Thu, 13 May 1999 00:00
Date: Thu, 13 May 1999 00:00
22 lines
1468 bytes
1468 bytes
Hi!
John E. Davis meinte am 13 May 1999 18:58:04 GMT:
> I think that you diagnosed the problem. Please substitute replace
> the process_xover function in art.c with the following version:
>
> [...]
I tested this and I think it works fine.
Thanks,
Gottfried.
--
Gottfried Schwieters __o <===|
D-44137 Dortmund _o/\<,_ |==>
PGP-Info im Header (U)/ (u) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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