]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Mailbox virtual name was set wrong with multiple namespaces.
authorTimo Sirainen <tss@iki.fi>
Tue, 19 Jan 2010 14:11:29 +0000 (16:11 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 19 Jan 2010 14:11:29 +0000 (16:11 +0200)
--HG--
branch : HEAD

src/lib-storage/index/index-storage.c

index 66100c87ff3545c7537c346dffb790a4f064c207..d2cdb6c9b6a1c286b31734d44d39a0420696fc3e 100644 (file)
@@ -458,8 +458,7 @@ void index_storage_mailbox_alloc(struct index_mailbox *ibox, const char *name,
        if (name != NULL) {
                box->name = p_strdup(box->pool, name);
                vname = t_str_new(128);
-               mail_namespace_get_vname(box->storage->user->namespaces,
-                                        vname, name);
+               mail_namespace_get_vname(box->list->ns, vname, name);
                box->vname = p_strdup(box->pool, str_c(vname));
        } else {
                i_assert(input != NULL);