Fixed mbfido news stopping on not existing newsgroup
This commit is contained in:
parent
3c710250fa
commit
af1ced2e79
@ -4677,6 +4677,8 @@ v0.33.20 10-Feb-2002
|
|||||||
Made error message in AddMsgHdr function more clear.
|
Made error message in AddMsgHdr function more clear.
|
||||||
Removed experimental patch in news->ftn gate were wrong To:
|
Removed experimental patch in news->ftn gate were wrong To:
|
||||||
address was created.
|
address was created.
|
||||||
|
The mbfido news functions doesn't abort anymore when a
|
||||||
|
newsgroup didn't exist.
|
||||||
|
|
||||||
mball:
|
mball:
|
||||||
Will not crash anymore when it needs more then 10 minutes to
|
Will not crash anymore when it needs more then 10 minutes to
|
||||||
|
@ -263,9 +263,10 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
|
|||||||
resp = nntp_receive();
|
resp = nntp_receive();
|
||||||
retval = atoi(strtok(resp, " "));
|
retval = atoi(strtok(resp, " "));
|
||||||
if (retval != 211) {
|
if (retval != 211) {
|
||||||
if (retval == 411)
|
if (retval == 411) {
|
||||||
WriteError("No such newsgroup: %s", grpname);
|
WriteError("No such newsgroup: %s", grpname);
|
||||||
else
|
return RETVAL_UNEXPECTEDANS;
|
||||||
|
}
|
||||||
WriteError("Unknown response %d to GROUP command", retval);
|
WriteError("Unknown response %d to GROUP command", retval);
|
||||||
return RETVAL_ERROR;
|
return RETVAL_ERROR;
|
||||||
}
|
}
|
||||||
@ -281,7 +282,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
|
|||||||
}
|
}
|
||||||
if (!total) {
|
if (!total) {
|
||||||
Syslog('N', "No articles");
|
Syslog('N', "No articles");
|
||||||
return RETVAL_OK;
|
return RETVAL_NOARTICLES;
|
||||||
}
|
}
|
||||||
|
|
||||||
retval = get_xover(grpname, start, end, art);
|
retval = get_xover(grpname, start, end, art);
|
||||||
@ -307,7 +308,7 @@ int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
|
|||||||
tidy_artlist(art);
|
tidy_artlist(art);
|
||||||
|
|
||||||
if ((maxarticles) && (fetched == maxarticles))
|
if ((maxarticles) && (fetched == maxarticles))
|
||||||
Syslog('!', "Warning: the maximum articles value for this group might be to low");
|
Syslog('!', "Warning: the max. articles value in newsgroup %s might be to low", grpname);
|
||||||
|
|
||||||
return RETVAL_OK;
|
return RETVAL_OK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user