From: Thomas Roessler Date: Thu, 8 Jun 2000 17:52:15 +0000 (+0000) Subject: Improve error reporting with mbox folders a bit. X-Git-Tag: mutt-1-3-3-rel~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=339a10de61a79439154d60643efc738192a9ff90;p=mutt Improve error reporting with mbox folders a bit. --- diff --git a/mbox.c b/mbox.c index c0777480..6897874b 100644 --- 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); }