dovecot-2.2: lib-storage: If mailbox autocreate fails with "alre...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 1 04:06:53 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/0faaee4060c5
changeset: 16443:0faaee4060c5
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 01 04:06:48 2013 +0300
description:
lib-storage: If mailbox autocreate fails with "already exists", ignore the error.
This check was supposed to have been already there, but it was checking for
the wrong error.

diffstat:

 src/lib-storage/mail-storage.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9e50919d7e8b -r 0faaee4060c5 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Sat Jun 01 03:48:07 2013 +0300
+++ b/src/lib-storage/mail-storage.c	Sat Jun 01 04:06:48 2013 +0300
@@ -731,7 +731,7 @@
 
 	if (mailbox_create(box, NULL, FALSE) < 0) {
 		errstr = mailbox_get_last_error(box, &error);
-		if (error != MAIL_ERROR_NOTFOUND) {
+		if (error != MAIL_ERROR_EXISTS) {
 			mail_storage_set_critical(box->storage,
 				"Failed to autocreate mailbox %s: %s",
 				box->vname, errstr);


More information about the dovecot-cvs mailing list