Cleanup news post queue even after some messages are refused

This commit is contained in:
Michiel Broek 2005-09-06 18:52:34 +00:00
parent 5055afc9d3
commit 250ae75a87
3 changed files with 9 additions and 7 deletions

View File

@ -6,6 +6,10 @@ v0.71.6 02-Sep-2005
mbcico:
Changed compression state logic.
mbfido:
If some newsarticles are not accepted for post, don't treat
this as fatal and clear the sendqueue.
v0.71.5 18-Aug-2005 - 02-Sep-2005

4
TODO
View File

@ -92,10 +92,6 @@ mbfido:
N: Someday make retoss from bad possible (volonteers?).
N: When posting news better check which articles are posted ok, and
what are fatal errors from the newsserver to prevent repost of good
posts.
mbcico:
L: Implement binkp option ND.

View File

@ -43,7 +43,7 @@ extern int news_bad;
int newspost(void)
{
int start = TRUE;
int start = TRUE, fatal = FALSE;
char *buf, *p;
long curpos, count, seqnr;
FILE *ofp = NULL, *nb;
@ -219,9 +219,11 @@ int newspost(void)
unlink(buf);
}
if (! news_bad) {
snprintf(buf, 10240, "%s/tmp/newsout", getenv("MBSE_ROOT"));
if (! fatal) {
unlink(buf);
} else {
Syslog('+', "Fatal errors posting news, %s not removed", buf);
}
free(buf);