dovecot: If syncing internal dummy mbox fails, show the error me...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 27 19:06:44 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/91a003d00b4e
changeset: 6624:91a003d00b4e
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 27 19:06:33 2007 +0300
description:
If syncing internal dummy mbox fails, show the error message.
diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
src/deliver/deliver.c | 8 ++++++--
diffs (18 lines):
diff -r dde1980eccae -r 91a003d00b4e src/deliver/deliver.c
--- a/src/deliver/deliver.c Sat Oct 27 19:03:17 2007 +0300
+++ b/src/deliver/deliver.c Sat Oct 27 19:06:33 2007 +0300
@@ -866,8 +866,12 @@ int main(int argc, char *argv[])
MAILBOX_OPEN_MBOX_ONE_MSG_ONLY);
if (box == NULL)
i_fatal("Can't open delivery mail as mbox");
- if (sync_quick(box) < 0)
- i_fatal("Can't sync delivery mail");
+ if (sync_quick(box) < 0) {
+ enum mail_error error;
+
+ i_fatal("Can't sync delivery mail: %s",
+ mail_storage_get_last_error(storage, &error));
+ }
t = mailbox_transaction_begin(box, 0);
mail = mail_alloc(t, 0, NULL);
More information about the dovecot-cvs
mailing list