Adding .pkt file to arcmail now does 2 attempts
This commit is contained in:
parent
a755d6c33d
commit
6e8d699ec3
@ -4634,6 +4634,8 @@ v0.33.20 10-Feb-2002
|
|||||||
If mbfido fails to unzip a incoming mailarchive, a second
|
If mbfido fails to unzip a incoming mailarchive, a second
|
||||||
attempt is done after a sync() and one second delay. This
|
attempt is done after a sync() and one second delay. This
|
||||||
seems to be a kernel flush problem.
|
seems to be a kernel flush problem.
|
||||||
|
The same goes for adding .pkt files to the outbound, a second
|
||||||
|
try is done after a sync() to add the .pkt to the archive.
|
||||||
In the To field of a created TIC file there is now a comma
|
In the To field of a created TIC file there is now a comma
|
||||||
between the sysop name and fidonet aka.
|
between the sysop name and fidonet aka.
|
||||||
When creating a filefind netmail reply there was no
|
When creating a filefind netmail reply there was no
|
||||||
|
@ -243,8 +243,18 @@ int pack_queue(char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fsize = file_size(arcfile);
|
fsize = file_size(arcfile);
|
||||||
if (execute(archiver.marc, arcfile, pktfile, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null") == 0)
|
if (execute(archiver.marc, arcfile, pktfile, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null") == 0) {
|
||||||
unlink(pktfile);
|
unlink(pktfile);
|
||||||
|
} else {
|
||||||
|
sync();
|
||||||
|
sleep(1);
|
||||||
|
Syslog('+', "Create ARCmail failed, trying again after sync()");
|
||||||
|
if (execute(archiver.marc, arcfile, pktfile, (char *)"/dev/null", (char *)"/dev/null", (char *)"/dev/null") == 0) {
|
||||||
|
unlink(pktfile);
|
||||||
|
} else {
|
||||||
|
WriteError("Can't add %s to ARCmail archive", pktfile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attach file to .flo
|
* Attach file to .flo
|
||||||
|
Reference in New Issue
Block a user