Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8993:739c4e372140 HEAD
Shared mailboxes: Fixed a bug where some mailboxes were added to root shared namespace.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 29 Apr 2009 14:26:09 -0400 |
parents | 9f91cc822f34 |
children | ace37e01c2e0 |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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;