From b03b0570081336e0195415418a39e0ce2484b314 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 7 Jul 2010 12:23:22 +0100 Subject: [PATCH] fts-solr: Compiling fix. Patch by nareshov. --HG-- branch : HEAD --- src/plugins/fts-solr/fts-backend-solr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/fts-solr/fts-backend-solr.c b/src/plugins/fts-solr/fts-backend-solr.c index 38ac4d015c..4015091513 100644 --- a/src/plugins/fts-solr/fts-backend-solr.c +++ b/src/plugins/fts-solr/fts-backend-solr.c @@ -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 : -- 2.47.3