Fixed logging of 0 articles in scannews.

This commit is contained in:
Michiel Broek 2004-07-30 18:58:40 +00:00
parent 54e96cf793
commit 7967ad4417
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ v0.61.3 25-Jul-2004
mbfido:
Changed netmail counters in the .msg import function.
Fixed logging of 0 articles in scannews.
v0.61.2 11-Jul-2004 - 25-Jul-2004

View File

@ -295,6 +295,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
Syslog('m', "NEW: total %d, start %d, end %d", total, start, end);
}
if (!total) {
Syslog('+', "Fetched 0 articles from %s", grpname);
return RETVAL_NOARTICLES;
}
@ -321,7 +322,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
if ((maxarticles) && (fetched == maxarticles))
Syslog('!', "Warning: the max. articles value in newsgroup %s might be to low", grpname);
Syslog('+', "Fetched %d message%s from %s", fetched, (fetched == 1) ? "":"s", grpname);
Syslog('+', "Fetched %d article%s from %s", fetched, (fetched == 1) ? "":"s", grpname);
return RETVAL_OK;
}