]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Place index files under root_dir/indexes/ directory.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Sep 2011 08:52:08 +0000 (11:52 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Sep 2011 08:52:08 +0000 (11:52 +0300)
src/lib-storage/index/imapc/imapc-list.c

index 48d87b825b49dbb88d8c76e664736c56238d89fa..93c02136c899ab890e08bfdb6331f6b6fdd43a2c 100644 (file)
@@ -189,8 +189,8 @@ static struct mailbox_list *imapc_list_get_fs(struct imapc_mailbox_list *list)
                /* the root dir shouldn't actually ever be used. we just need
                   it to be different from index_dir so the index directories
                   get autocreated */
-               list_set.root_dir = t_strconcat(dir, "/", NULL);
-               list_set.index_dir = dir;
+               list_set.root_dir = dir;
+               list_set.index_dir = t_strconcat(dir, "/indexes", NULL);
                list_set.escape_char = '%';
 
                if (mailbox_list_create(list_set.layout, list->list.ns,