]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: When skipping subscriptions file, use the configured filename instead of hardco...
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Apr 2009 23:59:27 +0000 (19:59 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Apr 2009 23:59:27 +0000 (19:59 -0400)
--HG--
branch : HEAD

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

index 46da658aa3917b7257109e6f585553c6b53e91e0..5fc7bddc8fe3a7c3d19512cd2164eb0efe674575 100644 (file)
@@ -857,7 +857,7 @@ static int mbox_list_iter_is_mailbox(struct mailbox_list_iterate_context *ctx,
                *flags |= MAILBOX_NOSELECT;
                return 0;
        }
-       if (strcmp(fname, MBOX_SUBSCRIPTION_FILE_NAME) == 0) {
+       if (strcmp(fname, ctx->list->set.subscription_fname) == 0) {
                root_dir = mailbox_list_get_path(storage->list, NULL,
                                                 MAILBOX_LIST_PATH_TYPE_DIR);
                if (strcmp(root_dir, dir) == 0) {