Skip to content
Snippets Groups Projects
Commit f55339bf authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't download more msgs than the max for the sub-board (if non-zero)

No sense downloading articles we're just going to toss out the next time
we performance msgbase maintenance.
parent 5abdedaf
No related branches found
No related tags found
No related merge requests found
Pipeline #7162 passed
......@@ -455,7 +455,7 @@ for(sub in area) {
);
if(hdr == null) {
if(msgbase.status != 0)
alert("Error " + msgbase.error + " reading msg header #" + ptr);
alert("Error (" + msgbase.error + ") reading msg header #" + ptr);
continue;
}
if(!hdr.id) {
......@@ -619,6 +619,8 @@ for(sub in area) {
ptr = last_msg;
ptr++;
}
if(msgbase.cfg.max_msgs > 0 && last_msg - ptr > msgbase.cfg.max_msgs)
ptr = (last_msg - msgbase.cfg.max_msgs) + 1;
delete article_list;
subpending=0;
......@@ -651,7 +653,7 @@ for(sub in area) {
continue;
}
printf("Retrieving article: %u\r\n", ptr);
printf("Retrieving %s article: %u\r\n", newsgroup, ptr);
writeln(format("ARTICLE %lu",ptr));
rsp = readln();
if(rsp==null || rsp[0]!='2') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment