]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: Don't force SEARCH_HEADER_COMPRESS_LWSP to update indexes either.
authorTimo Sirainen <tss@iki.fi>
Wed, 5 Nov 2008 12:23:22 +0000 (14:23 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 5 Nov 2008 12:23:22 +0000 (14:23 +0200)
--HG--
branch : HEAD

src/plugins/fts/fts-storage.c

index 9f135616e9a904199e8ff967031bd053eb47d346..794c580d64f265902d0ff9d1537c245ca3339056 100644 (file)
@@ -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;
        }