dovecot-1.2: SEARCH: Fixed NOT <seqset> not matching anything.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 12 02:15:52 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/7caab06fb890
changeset: 7828:7caab06fb890
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 12 01:48:48 2008 +0300
description:
SEARCH: Fixed NOT <seqset> not matching anything.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-storage/index/index-search.c | 4 ++--
diffs (14 lines):
diff -r 6659785091ab -r 7caab06fb890 src/lib-storage/index/index-search.c
--- 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 @@ static bool search_msgset_fix_limits(con
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;
}
}
More information about the dovecot-cvs
mailing list