🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55649

Re: slrn 0.9.6.0 released

#55649
From: Thomas Schultz
Date: Tue, 21 Dec 1999 00:00
80 lines
4208 bytes
On 19 December 1999 at 22:14 GMT, John E. Davis <davis@space.mit.edu> wrote:

> Changes since 0.9.5.7
> 0.  misc bugs fixed

Right now, I am using two minor bugfixes which are not included in
0.9.6.0:

First, when forwarding a posting, slrn does not add a "From:" header
line, even if it was compiled with SLRN_GEN_FROM_EMAIL_HEADER. A small
patch to fix this can be found at
http://www.netcologne.de/%7Enc-schuelfe/slrn/patches/slrn-0.9.6.0-forward_from.diff

Second, I was not able to install slrn to another directory than
$(prefix) using "make install". However, this is necessary if you want
to build a packaged version of slrn as a user. Usually, this can be
done by writing "make DESTDIR=/var/tmp/slrn-root install"; I changed
src/Makefile.in to support this. I just sent the patch to you via
e-mail.

> 8.  `author_display' and `display_author_realname' removed from
>     doc/slrn.rc file.

I guess `slrn_display_score' is obsolete as well; if someone does not
want the score to be displayed, he can simply omit '%S' in
header_display_format. I think the variable should be set to 1 by
default and be removed from doc/slrn.rc.

> 9.  slrn --version will show all compile-time options.

Some compile-time options are shown more than once:

<version.c>
     {"DECODE",                 SLRN_HAS_DECODE},
     {"PIPING",                 SLRN_HAS_PIPING},
     {"PIPING",                 SLRN_HAS_PIPING},
     {"DECODE",                 SLRN_HAS_DECODE},
</version.c>

> 13. There is nolonger any need to exit article mode to apply a changed
>     score file.

There is a bug in this feature. When applying scores without exiting
article mode, 'expensive' scores get messed up (i.e. either all
articles in the group receive the score or none of them, no matter
whether the individual article matches the rule or not).

I tried to fix this, but found myself facing a bunch of variables and
functions whose meanings I did not fully understand. This is as far as
I got:

In slrn_open_score(), score.c, `Slrn_Score_After_XOver' is set to 0 if
there are any expensive scores (line 523, generic>=1). The score file
is applied in create_score(), art.c, using score_headers(), which
eventually leads to slrn_score_header(), score.c, being executed. As
`Slrn_Score_After_XOver' is 0, this function does not use the XHDR
command to get the expensive header, but tries to retrieve it using
slrn_get_extra_xover_header(), xover.c, instead.

Although I do not fully understand what slrn_get_extra_xover_header()
does, I guess that this is the point where the whole thing goes wrong.
If I make sure `Slrn_Score_After_XOver' is 1 (e.g. by commenting out
"generic>=1" in score.c, line 521), sv_xhdr_command is used instead
(which eventually calls nntp_xhdr_cmd, nntplib.c, on my system) and
everything works fine. But as I am also not completely sure what
`Slrn_Score_After_XOver' is for, I do not know if this has undesired
side-effects, so I would like to leave this bugfix to you. I hope you
found my report intellegible...

Another thing you might consider while you are at it: In
process_xover(), art.c, the "Subject:" and "From:" header lines are
rfc1522_decoded before scoring takes place. When scoring expensive
header fields, this is not done, which makes it virtually impossible
to look for words containing 8bit-characters there, as the regular
expression would have to work on the encoded line.
-- 
Kind regards,
    Thomas Schultz

Technical Details
Message-ID: <slrn85tnhc.n16.tststs@starflower.tststs.ddns.org>
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
References: <slrn85qm58.if.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn85tnhc.n16.tststs@starflower.tststs.ddns.org>
Subject: Re: slrn 0.9.6.0 released
Date: Tue, 21 Dec 1999 00:00:00 +0000
From: tststs@gmx.de (Thomas Schultz)
References: <slrn85qm58.if.davis@aluche.mit.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-mail
X-Deja-AN: 563253447
X-Server-Date: 21 Dec 1999 03:28:46 GMT
X-Trace: fu-berlin.de 945747579 97720 149.225.46.135 (16 [152])
Organization: Pinguin online
User-Agent: slrn/0.9.6.0 (Linux)
Newsgroups: news.software.readers