Article View: news.software.readers
Article #20946Re: slrn 0.8.7.1 bugs
From: Olly Betts
Date: Fri, 26 Apr 1996 00:00
Date: Fri, 26 Apr 1996 00:00
87 lines
3559 bytes
3559 bytes
In article <slrn4nvmb8.8pl.davis@wiwaxia.mit.edu>, John E. Davis wrote:
>On 18 Apr 1996 23:33:50 GMT, John Caruso <jcaruso@sr.csg.com>
>wrote:
> : 2) [Article counts wrong sometimes]
>
>I thought I responded to it, perhaps in private email. This is due to the
>fact that the server only reports min/max article numbers which means that
>there would appear to be max - min + 1 articles available. When slrn enters
>the group the first time, this is all the information available to it.
This isn't true. The NNTP GROUP command returns an estimate for the number
of articles in a group, like so:
group news.software.readers
211 159 23223 25020 news.software.readers
211 is the response code, 159 the estimated number of articles, 23223 the
min article number and 25020 the max article number.
Servers are allowed to over-estimate, so some may just return (max-min+1),
but as you can see, INN doesn't.
> : 3) Percentages (during group initialization) are still broken.
>
>Please elaborate.
I suspect he means that the percentage count on entering a group usually
doesn't get anywhere near 100% before slrn has done the job. So it looks
like slrn overestimating how much it has to do. This may be due to the
overestimating of the number of articles in the group (as in 2 above),
but the code looks like it's taking this into account.
> : 5) "g" command with an invalid group gives "Group <blah> is bogus.^M".
Here's a patch to fix that. I've not been able to exercise it, but this is
the only slrn_error() call with a '\r' in the string.
--- group.c.orig Fri Apr 26 10:41:56 1996
+++ group.c Fri Apr 26 10:42:16 1996
@@ -292,7 +292,7 @@
if (0 != nntp_select_group (g->name, &min, &max))
{
Slrn_Groups_Dirty = 1;
- slrn_error ("Group %s is bogus.\r\n", g->name);
+ slrn_error ("Group %s is bogus.\n", g->name);
SLFREE (g);
return NULL;
}
> : 6) "j" command doesn't allow <RETURN> to abort.
And another patch which changes the behaviour when prompting for an integer.
Before if there was no default, slrn would wait for none empty input. This
patch changes this to empty input giving the error "Integer expected." in
the status bar and otherwise acting as if ^G had been typed.
--- misc.c.orig Wed Mar 27 08:25:32 1996
+++ misc.c Fri Apr 26 10:50:17 1996
@@ -984,16 +984,12 @@
}
else strcpy (buf, prompt);
- do
+ *str = 0;
+ if (-1 == (n = slrn_read_input (buf, str, 1)))
{
- *str = 0;
- if (-1 == (n = slrn_read_input (buf, str, 1)))
- {
- slrn_error ("Abort!");
- return -1;
- }
+ slrn_error ("Abort!");
+ return -1;
}
- while ((n == 0) && (dflt == NULL));
if (1 != sscanf(str, "%d", &n))
{
Olly
--
cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Technical Details
Message-ID:
<4lq741$97g@sunforest.mantis.co.uk>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:
<slrn4ndkd9.qnl.jcaruso@raptor.sr.csg.com> <slrn4nvmb8.8pl.davis@wiwaxia.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <4lq741$97g@sunforest.mantis.co.uk> Subject: Re: slrn 0.8.7.1 bugs Date: Fri, 26 Apr 1996 00:00:00 +0000 From: olly@mantis.co.uk (Olly Betts) References: <slrn4ndkd9.qnl.jcaruso@raptor.sr.csg.com> <slrn4nvmb8.8pl.davis@wiwaxia.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: 151547703 Content-type: text/plain; charset=iso-8859-1 Organization: Mantis Consultants Ltd, Cambridge. UK. Mime-version: 1.0 Newsgroups: news.software.readers