dovecot-2.0: Shared mailboxes: Fixed a bug where some mailboxes ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 29 21:26:22 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/fa8f044040e1
changeset: 9172:fa8f044040e1
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 c9ca36745670 -r fa8f044040e1 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
@@ -433,18 +433,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