]> granicus.if.org Git - mutt/commitdiff
Improve error reporting with mbox folders a bit.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2000 17:52:15 +0000 (17:52 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 8 Jun 2000 17:52:15 +0000 (17:52 +0000)
mbox.c

diff --git a/mbox.c b/mbox.c
index c07774803c63f5e435a7da29841de647901431f1..6897874b80179e3a00965ed54807a75e4a9e9325 100644 (file)
--- a/mbox.c
+++ b/mbox.c
@@ -846,6 +846,8 @@ int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint)
     fp = NULL;
     dprint(1, (debugfile, "mbox_sync_mailbox: fclose() returned non-zero.\n"));
     unlink (tempfile);
+    mutt_perror (tempfile);
+    sleep (5);
     goto bail;
   }
   fp = NULL;
@@ -863,6 +865,7 @@ int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint)
     mx_fastclose_mailbox (ctx);
     dprint (1, (debugfile, "mbox_sync_mailbox: unable to reopen temp copy of mailbox!\n"));
     mutt_perror (tempfile);
+    sleep (5);
     return (-1);
   }
 
@@ -920,6 +923,7 @@ int mbox_sync_mailbox (CONTEXT *ctx, int *index_hint)
     mx_fastclose_mailbox (ctx);
     mutt_pretty_mailbox (savefile);
     mutt_error (_("Write failed!  Saved partial mailbox to %s"), savefile);
+    sleep (5);
     return (-1);
   }