return ret;
}
+void
+mailbox_search_set_progress_hidden(struct mail_search_context *ctx, bool hidden)
+{
+ ctx->progress_hidden = hidden;
+}
+
static void mailbox_search_notify(struct mailbox *box,
struct mail_search_context *ctx)
{
struct mailbox_header_lookup_ctx *wanted_headers);
/* Deinitialize search request. */
int mailbox_search_deinit(struct mail_search_context **ctx);
+void
+mailbox_search_set_progress_hidden(struct mail_search_context *ctx, bool hidden);
/* Search the next message. Returns TRUE if found, FALSE if not. */
bool mailbox_search_next(struct mail_search_context *ctx, struct mail **mail_r);
/* Like mailbox_search_next(), but don't spend too much time searching.
#include "strescape.h"
#include "write-full.h"
#include "mail-search-build.h"
-#include "mail-storage-private.h"
+#include "mail-storage.h"
#include "mailbox-list-private.h"
#include "fts-api-private.h"
#include "fts-tokenizer.h"
fts_search_lookup(fctx);
} else {
/* hide "searching" notifications while building index */
- ctx->progress_hidden = TRUE;
+ mailbox_search_set_progress_hidden(ctx, TRUE);
}
}
return FALSE;
/* indexing finished */
- ctx->progress_hidden = FALSE;
+ mailbox_search_set_progress_hidden(ctx, FALSE);
if (fts_indexer_deinit(&fctx->indexer_ctx) < 0)
ret = -1;
if (ret > 0)