dovecot-2.2: lib-storage: Fixed creating selectable mailbox when...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 26 01:47:47 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/536b1643786e
changeset: 15116:536b1643786e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 26 01:47:21 2012 +0300
description:
lib-storage: Fixed creating selectable mailbox when it was already \Noselect

diffstat:

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

diffs (15 lines):

diff -r d0ca4c69ec76 -r 536b1643786e src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c	Wed Sep 26 01:38:59 2012 +0300
+++ b/src/lib-storage/index/index-storage.c	Wed Sep 26 01:47:21 2012 +0300
@@ -499,9 +499,9 @@
 			/* For example: layout=fs, path=~/Maildir/foo
 			   might itself exist, but does it have the
 			   cur|new|tmp subdirs? */
-			if (mailbox_exists(box, TRUE, &existence) < 0)
+			if (mailbox_exists(box, FALSE, &existence) < 0)
 				return -1;
-			if (existence == MAILBOX_EXISTENCE_NONE)
+			if (existence != MAILBOX_EXISTENCE_SELECT)
 				return 1;
 		}
 		mail_storage_set_error(box->storage, MAIL_ERROR_EXISTS,


More information about the dovecot-cvs mailing list