]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-solr: Compiling fix.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 11:23:22 +0000 (12:23 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 11:23:22 +0000 (12:23 +0100)
Patch by nareshov.

--HG--
branch : HEAD

src/plugins/fts-solr/fts-backend-solr.c

index 38ac4d015c9f1721c43698c7e524ea0aeba203d5..4015091513abae4f6222dab4b2e4c5ae21f2f854 100644 (file)
@@ -57,7 +57,7 @@ static void fts_box_name_get_root(struct mail_namespace **ns, const char **name)
                *ns = (*ns)->alias_for;
 
        if (**name == '\0' && *ns != orig_ns &&
-           ((*ns)->flags & NAMESPACE_FLAG_INBOX) != 0) {
+           ((*ns)->flags & NAMESPACE_FLAG_INBOX_USER) != 0) {
                /* ugly workaround to allow selecting INBOX from a Maildir/
                   when it's not in the inbox=yes namespace. */
                *name = "INBOX";
@@ -747,7 +747,7 @@ static bool solr_virtual_uid_map(const char *ns_prefix, const char *mailbox,
        bool convert_inbox;
 
        ns = solr_get_namespaces(ctx->backend, ctx->box, ns_prefix);
-       convert_inbox = (ns->flags & NAMESPACE_FLAG_INBOX) != 0 &&
+       convert_inbox = (ns->flags & NAMESPACE_FLAG_INBOX_USER) != 0 &&
                strcmp(mailbox, "INBOX") == 0;
        for (; ns != NULL; ns = ns->alias_chain_next) {
                vname = convert_inbox ? ns->prefix :