diff --git a/ChangeLog b/ChangeLog index b026e0e7..dd32f50f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4634,6 +4634,8 @@ v0.33.20 10-Feb-2002 If mbfido fails to unzip a incoming mailarchive, a second attempt is done after a sync() and one second delay. This 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 between the sysop name and fidonet aka. When creating a filefind netmail reply there was no diff --git a/mbfido/pack.c b/mbfido/pack.c index 0ca2024d..14b4130d 100644 --- a/mbfido/pack.c +++ b/mbfido/pack.c @@ -243,8 +243,18 @@ int pack_queue(char *name) } 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); + } 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