From: Timo Sirainen Date: Thu, 20 Mar 2008 13:42:57 +0000 (+0200) Subject: If we have both maybe and definite UIDs, remove all definite UIDs from maybe X-Git-Tag: 1.1.rc4~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=970a2531b1a36f555007f1b4e69a5e3bfdd49359;p=thirdparty%2Fdovecot%2Fcore.git If we have both maybe and definite UIDs, remove all definite UIDs from maybe UIDs. --HG-- branch : HEAD --- diff --git a/src/plugins/fts-squat/squat-trie.c b/src/plugins/fts-squat/squat-trie.c index e1fef8aa9b..607f540066 100644 --- a/src/plugins/fts-squat/squat-trie.c +++ b/src/plugins/fts-squat/squat-trie.c @@ -2015,6 +2015,7 @@ squat_trie_lookup_real(struct squat_trie *trie, const char *str, squat_trie_filter_type(type, &ctx.tmp_uids, definite_uids); } + seq_range_array_remove_seq_range(maybe_uids, definite_uids); squat_trie_add_unknown(trie, maybe_uids); array_free(&ctx.tmp_uids); array_free(&ctx.tmp_uids2);