Thread View: news.software.readers
7 messages
7 total messages
Started by John Caruso
Thu, 18 Apr 1996 00:00
slrn 0.8.7.1 bugs
Author: John Caruso
Date: Thu, 18 Apr 1996 00:00
Date: Thu, 18 Apr 1996 00:00
28 lines
1625 bytes
1625 bytes
A few bugs in slrn 0.8.7.1, some long-standing: 1) If I mark a few articles in a group unread and cancel all others in that group, then go back to the group later, I'll often see only new articles (i.e. the ones I marked unread previously are not in the list). But if I open the group a second time the old articles show up again. 2) If I cancel all articles in a group and then exit the group, it will often show a non-zero number of articles; selecting the group again will usually clear this number to zero (this was reported by another person as well, but I didn't see any response). 3) Percentages (during group initialization) are still broken. 4) I often see status messages like "Read 50/43 lines so far...". 5) "g" command with an invalid group gives "Group <blah> is bogus.^M". 6) "j" command doesn't allow <RETURN> to abort. -- John Caruso, Senior Technical Consultant ADP Claims Solutions Group Phone: (800) 366-4237 x2102 2010 Crow Canyon Place FAX : (510) 866-4839 San Ramon, CA 94583 (USA) Email: jcaruso@sr.csg.com
Re: slrn 0.8.7.1 bugs
Author: Olly Betts
Date: Fri, 19 Apr 1996 00:00
Date: Fri, 19 Apr 1996 00:00
15 lines
1281 bytes
1281 bytes
In article <slrn4ndkd9.qnl.jcaruso@raptor.sr.csg.com>, John Caruso wrote: >4) I often see status messages like "Read 50/43 lines so far...". The problem there is that the first number is the number of lines slrn has read from the NNTP server, and the second is the value it got for the Lines: header (usually from the overview file). The Lines: header gives the number of lines in the body of the article, so the first number can be larger than the second by the number of header lines (probably +1 for the blank line between header and body). Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Re: slrn 0.8.7.1 bugs
Author: John E. Davis
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
45 lines
2537 bytes
2537 bytes
On 18 Apr 1996 23:33:50 GMT, John Caruso <jcaruso@sr.csg.com> wrote: : 1) If I mark a few articles in a group unread and cancel all others in that : group, then go back to the group later, I'll often see only new articles : (i.e. the ones I marked unread previously are not in the list). But if I : open the group a second time the old articles show up again. This is due to an optimization that I have made. I will look into trying to fix it while keeping the optimization. : 2) If I cancel all articles in a group and then exit the group, it will : often show a non-zero number of articles; selecting the group again will : usually clear this number to zero (this was reported by another person : as well, but I didn't see any response). 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. When it enters the second time, it has much more information available because it has already visited the group. The alternative is to fetch all max-min+1 articles the first time through. : 3) Percentages (during group initialization) are still broken. Please elaborate. : 4) I often see status messages like "Read 50/43 lines so far...". This is because the Lines refers only to the body. The excess is due to the header lines. : 5) "g" command with an invalid group gives "Group <blah> is bogus.^M". : : 6) "j" command doesn't allow <RETURN> to abort. I will look into these but because of lack of time and other priorities, I cannot promise anything. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
Re: slrn 0.8.7.1 bugs
Author: 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
Re: slrn 0.8.7.1 bugs
Author: John E. Davis
Date: Fri, 26 Apr 1996 00:00
Date: Fri, 26 Apr 1996 00:00
36 lines
2435 bytes
2435 bytes
On 26 Apr 1996 10:04:49 GMT, Olly Betts <olly@mantis.co.uk> wrote: : >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. What I meant by this is that the information returned by the server is not sufficient to determine where gaps of non-available articles are. For example, although there may be 159 articles actually present in a group with article numbers ranging from 23223 to 25020, there is no information about how those 159 articles are distributed among the 1797 available slots. The problem arises when the user wants the last 50 or so articles--- what article number do we start probing at? Of course slrn can start at the beginning (23223) but that is not very efficient. So, slrn makes the reasonable assumption that the last 50 are distributed from 25020-50 to 25020. If there are gaps in this range, the assumption is wrong. Nevertheless, it works most of the time and I beleive that the efficiency that is gained outweighs the downside. -- John E. Davis Center for Space Research/AXAF Science Center 617-258-8119 MIT 37-662c, Cambridge, MA 02139 http://space.mit.edu/~davis
Re: slrn 0.8.7.1 bugs
Author: John Caruso
Date: Mon, 29 Apr 1996 00:00
Date: Mon, 29 Apr 1996 00:00
26 lines
1920 bytes
1920 bytes
On 26 Apr 1996 19:58:48 GMT, John E. Davis <davis@space.mit.edu> wrote: > >The problem arises when the user wants the last 50 or so articles--- what >article number do we start probing at? Of course slrn can start at the >beginning (23223) but that is not very efficient. So, slrn makes the >reasonable assumption that the last 50 are distributed from 25020-50 to >25020. If there are gaps in this range, the assumption is wrong. >Nevertheless, it works most of the time and I beleive that the efficiency >that is gained outweighs the downside. In its current state, slrn seems like a batch newsreader--it only appears to read the set of articles as of the last "g" command, and it's always necessary to enter a group twice to make sure you've really seen all of the current articles for high-volume groups. It'd be nice if slrn would get ALL current articles when a group is entered, since the current method makes slrn seem careless in its article handling. -- John Caruso, Senior Technical Consultant ADP Claims Solutions Group Phone: (800) 366-4237 x2102 2010 Crow Canyon Place FAX : (510) 866-4839 San Ramon, CA 94583 (USA) Email: jcaruso@sr.csg.com
Re: slrn 0.8.7.1 bugs
Author: Olly Betts
Date: Wed, 01 May 1996 00:00
Date: Wed, 01 May 1996 00:00
26 lines
1793 bytes
1793 bytes
In article <slrn4o2ano.cs5.davis@wiwaxia.mit.edu>, John E. Davis <davis@space.mit.edu> wrote: >What I meant by this is that the information returned by the server is not >sufficient to determine where gaps of non-available articles are. Ah. My apologies for misunderstanding. >[...] although there may be 159 articles actually present in a group with >article numbers ranging from 23223 to 25020, there is no information about >how those 159 articles are distributed among the 1797 available slots. >[...] So, slrn makes the >reasonable assumption that the last 50 are distributed from 25020-50 to >25020. I agree that this is a reasonable compromise. In general, many articles are likely to be missing from early on in the range, as articles expire leaving a few FAQs and the like which have an honoured "Expires:" header. Gaps at the end of the range are likely to be cancelled articles, which are likely to be rare unless a cancel-bot has visited. Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
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