dovecot-1.2: Shared mailboxes: Fixed a bug where some mailboxes ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 29 21:26:36 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/739c4e372140
changeset: 8993:739c4e372140
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 29 14:26:09 2009 -0400
description:
Shared mailboxes: Fixed a bug where some mailboxes were added to root shared namespace.

diffstat:

1 file changed, 4 insertions(+), 4 deletions(-)
src/lib-storage/mail-storage.c |    8 ++++----

diffs (26 lines):

diff -r 9f91cc822f34 -r 739c4e372140 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Wed Apr 29 14:13:23 2009 -0400
+++ b/src/lib-storage/mail-storage.c	Wed Apr 29 14:26:09 2009 -0400
@@ -458,18 +458,18 @@ struct mailbox *mailbox_open(struct mail
 			     enum mailbox_open_flags flags)
 {
 	struct mail_storage *storage = *_storage;
-	struct mailbox_list *list = storage->list;
 	struct mailbox *box;
 
-	if (list->v.get_storage != NULL) {
-		if (list->v.get_storage(list, &name, &storage) < 0)
+	if (storage->list->v.get_storage != NULL) {
+		if (storage->list->v.get_storage(storage->list,
+						 &name, &storage) < 0)
 			return NULL;
 		*_storage = storage;
 	}
 
 	mail_storage_clear_error(storage);
 
-	if (!mailbox_list_is_valid_existing_name(list, name)) {
+	if (!mailbox_list_is_valid_existing_name(storage->list, name)) {
 		mail_storage_set_error(storage, MAIL_ERROR_PARAMS,
 				       "Invalid mailbox name");
 		return NULL;


More information about the dovecot-cvs mailing list