Updated scannews
This commit is contained in:
parent
e261f5072e
commit
309bd8a586
@ -250,7 +250,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
|
||||
int retval, fetched = 0;
|
||||
long total, start, end;
|
||||
|
||||
Syslog('M', "do_one_group(%s, %s)", grpname, ftntag);
|
||||
Syslog('m', "do_one_group(%s, %s)", grpname, ftntag);
|
||||
IsDoing((char *)"Scan %s", grpname);
|
||||
sprintf(temp, "GROUP %s\r\n", grpname);
|
||||
nntp_send(temp);
|
||||
@ -288,7 +288,6 @@ 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('M', "No articles");
|
||||
return RETVAL_NOARTICLES;
|
||||
}
|
||||
|
||||
@ -315,6 +314,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);
|
||||
return RETVAL_OK;
|
||||
}
|
||||
|
||||
@ -391,14 +391,11 @@ int get_xover(char *grpname, long startnr, long endnr, List **art)
|
||||
sprintf(cmd, "XOVER %ld-%ld\r\n", startnr, endnr);
|
||||
if ((retval = nntp_cmd(cmd, 224))) {
|
||||
switch (retval) {
|
||||
case 412:
|
||||
WriteError("No newsgroup selected");
|
||||
case 412: WriteError("No newsgroup selected");
|
||||
return RETVAL_NOXOVER;
|
||||
case 502:
|
||||
WriteError("Permission denied");
|
||||
case 502: WriteError("Permission denied");
|
||||
return RETVAL_NOXOVER;
|
||||
case 420:
|
||||
Syslog('m', "No articles in group %s", grpname);
|
||||
case 420: Syslog('m', "No articles in group %s", grpname);
|
||||
return RETVAL_OK;
|
||||
}
|
||||
}
|
||||
@ -517,15 +514,15 @@ int get_xoverview(void)
|
||||
}
|
||||
}
|
||||
|
||||
if ((tmp = xoverview) != NULL) {
|
||||
Syslog('M', "--Xoverview.fmt list");
|
||||
while (tmp != NULL) {
|
||||
if (tmp->header != NULL) {
|
||||
Syslog('M', "item = %s -- full = %s", tmp->header, tmp->full ? "True":"False");
|
||||
}
|
||||
tmp = tmp->next;
|
||||
}
|
||||
}
|
||||
// if ((tmp = xoverview) != NULL) {
|
||||
// Syslog('M', "--Xoverview.fmt list");
|
||||
// while (tmp != NULL) {
|
||||
// if (tmp->header != NULL) {
|
||||
// Syslog('M', "item = %s -- full = %s", tmp->header, tmp->full ? "True":"False");
|
||||
// }
|
||||
// tmp = tmp->next;
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user