From: Timo Sirainen Date: Wed, 5 Nov 2008 12:23:22 +0000 (+0200) Subject: fts: Don't force SEARCH_HEADER_COMPRESS_LWSP to update indexes either. X-Git-Tag: 1.2.alpha4~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e22b857e838fe118de3f78513aad6a3c6f4306b3;p=thirdparty%2Fdovecot%2Fcore.git fts: Don't force SEARCH_HEADER_COMPRESS_LWSP to update indexes either. --HG-- branch : HEAD --- diff --git a/src/plugins/fts/fts-storage.c b/src/plugins/fts/fts-storage.c index 9f135616e9..794c580d64 100644 --- a/src/plugins/fts/fts-storage.c +++ b/src/plugins/fts/fts-storage.c @@ -187,7 +187,8 @@ static int fts_build_init(struct fts_search_context *fctx) /* no new messages */ return 0; } - if (fctx->best_arg->type == SEARCH_HEADER) { + if (fctx->best_arg->type == SEARCH_HEADER || + fctx->best_arg->type == SEARCH_HEADER_COMPRESS_LWSP) { /* we're not updating the index just for header lookups */ return 0; }