Article View: news.software.readers
Article #48377Re: slrnpull slow when reading a newsgroup first time
From: Sylvan Butler
Date: Wed, 05 May 1999 00:00
Date: Wed, 05 May 1999 00:00
47 lines
2789 bytes
2789 bytes
On Wed, 05 May 1999 12:10:29 GMT, Byrial Jensen <bjensen@nospam.dk> wrote:
>However the log report is still misleading about the number of
>available articles, when it says something like:
>
>05/04/1999 15:17:25 Fetching articles for dk.snak.
>05/04/1999 15:17:26 dk.snak: Retrieving articles 120572-120573.
>05/04/1999 15:17:26 dk.snak: 2 articles available.
>05/04/1999 15:17:27 dk.snak: 2/2 (0 killed), Time: 00:00:08, BPS: 1121
>
>I would instead prefer a log report like this:
>
>05/04/1999 15:17:25 Fetching articles for dk.snak.
>05/04/1999 15:17:26 dk.snak: 10182 articles available.
>05/04/1999 15:17:26 dk.snak: Only retrieving last 2 articles.
>05/04/1999 15:17:26 dk.snak: Retrieving articles 120572-120573.
>05/04/1999 15:17:27 dk.snak: 2/2 (0 killed), Time: 00:00:08, BPS: 1121
Will this do? (I don't use slrnpull.c, so maybe I don't have the
right numbers in that message... But the numbers you wanted aren't
even readily available.)
diff -u slrnpull.c.orig slrnpull.c
--- slrnpull.c.orig Wed May 5 12:09:07 1999
+++ slrnpull.c Wed May 5 12:28:46 1999
@@ -810,8 +810,11 @@
* all the message-ids when the user specifies a limit to grab.
*/
if ((max <= 1) && (g->max_to_get != 0)
- && ((unsigned int) server_max > g->max_to_get))
+ && ((unsigned int) server_max > g->max_to_get)) {
max = (unsigned int) server_max - g->max_to_get + 1;
+ log_message ("%s: Attempting last %u/%u articles.",
+ g->name, g->max_to_get, server_max);
+ }
status = nntp_server_vcmd (s, "XHDR Message-Id %u-", max);
if (status == -1)
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
Technical Details
Message-ID:
<slrn7j13vh.5tm.nospam+_no_Zs__9905@hpb13799z.zboi.hpz.com.invalid>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:
<slrn7iqpnc.eb.bjensen@ask.ask> <slrn7irln7.f4q.davis@aluche.mit.edu> <slrn7is4fi.g7.bjensen@ask.ask> <slrn7is930.m9v.davis@aluche.mit.edu> <slrn7j0d0a.c3.bjensen@ask.ask>Show Full Headers
Complete Article Headers
Message-ID: <slrn7j13vh.5tm.nospam+_no_Zs__9905@hpb13799z.zboi.hpz.com.invalid> Subject: Re: slrnpull slow when reading a newsgroup first time Date: Wed, 05 May 1999 00:00:00 +0000 From: nospam+_no_Zs__9905@hpb13799z.zboi.hpz.com.invalid (Sylvan Butler) References: <slrn7iqpnc.eb.bjensen@ask.ask> <slrn7irln7.f4q.davis@aluche.mit.edu> <slrn7is4fi.g7.bjensen@ask.ask> <slrn7is930.m9v.davis@aluche.mit.edu> <slrn7j0d0a.c3.bjensen@ask.ask> 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: 474422794 Mail-Copies-To: never Organization: Hewlett-Packard User-Agent: slrn/0.9.5.5 (Linux) Newsgroups: news.software.readers