changeset 7828:7caab06fb890 HEAD

SEARCH: Fixed NOT <seqset> not matching anything.
author Timo Sirainen <tss@iki.fi>
date Thu, 12 Jun 2008 01:48:48 +0300
parents 6659785091ab
children 1550dc4f24a5
files src/lib-storage/index/index-search.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c	Thu Jun 12 01:42:21 2008 +0300
+++ b/src/lib-storage/index/index-search.c	Thu Jun 12 01:48:48 2008 +0300
@@ -639,8 +639,8 @@
 	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;
 	}
 }