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