dovecot-2.2: lazy_expunge: If lazy-expunge mailbox open/create f...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 9 20:17:24 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/ce30e5ac42a9
changeset: 17207:ce30e5ac42a9
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 09 23:17:09 2014 +0300
description:
lazy_expunge: If lazy-expunge mailbox open/create fails, show the mailbox name in error message.
diffstat:
src/plugins/lazy-expunge/lazy-expunge-plugin.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 20462a116704 -r ce30e5ac42a9 src/plugins/lazy-expunge/lazy-expunge-plugin.c
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c Wed Apr 09 18:14:33 2014 +0300
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c Wed Apr 09 23:17:09 2014 +0300
@@ -104,6 +104,8 @@
*error_r = mailbox_get_last_error(box, &error);
if (error != MAIL_ERROR_NOTFOUND) {
+ *error_r = t_strdup_printf("Failed to open mailbox %s: %s",
+ name, *error_r);
mailbox_free(&box);
return NULL;
}
@@ -111,7 +113,8 @@
/* try creating and re-opening it. */
if (mailbox_create(box, NULL, FALSE) < 0 ||
mailbox_open(box) < 0) {
- *error_r = mailbox_get_last_error(box, NULL);
+ *error_r = t_strdup_printf("Failed to create mailbox %s: %s", name,
+ mailbox_get_last_error(box, NULL));
mailbox_free(&box);
return NULL;
}
More information about the dovecot-cvs
mailing list