]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
SEARCH: Fixed NOT <seqset> not matching anything.
authorTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 22:48:48 +0000 (01:48 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 11 Jun 2008 22:48:48 +0000 (01:48 +0300)
--HG--
branch : HEAD

src/lib-storage/index/index-search.c

index 1ae4e1e4dffd57c9e74d8fc94f7d177eb24afdec..c1856322cafafd9db22b42ff0aa2cd3d3f5b471e 100644 (file)
@@ -639,8 +639,8 @@ static bool search_msgset_fix_limits(const struct mail_index_header *hdr,
        else {
                /* if all messages are in the range, it can't match */
                range = array_get_modifiable(seqset, &count);
-               return range[0].seq1 == 1 &&
-                       range[count-1].seq2 == hdr->messages_count;
+               return range[0].seq1 != 1 ||
+                       range[count-1].seq2 != hdr->messages_count;
        }
 }