dovecot-1.2: Fix to previous search_next_update_seq change.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Nov 23 02:40:15 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/bcdbf33ae9b8
changeset: 8479:bcdbf33ae9b8
user: Timo Sirainen <tss at iki.fi>
date: Sun Nov 23 01:59:35 2008 +0200
description:
Fix to previous search_next_update_seq change.
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
src/lib-storage/index/index-search.c | 6 +++---
diffs (30 lines):
diff -r adf36d9cd338 -r bcdbf33ae9b8 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c Sun Nov 23 01:47:30 2008 +0200
+++ b/src/lib-storage/index/index-search.c Sun Nov 23 01:59:35 2008 +0200
@@ -1164,7 +1164,7 @@ int index_storage_search_next_nonblock(s
struct index_search_context *ctx = (struct index_search_context *)_ctx;
struct mailbox *box = _ctx->transaction->box;
unsigned int count = 0;
- bool match, never;
+ bool match = FALSE, never;
*tryagain_r = FALSE;
@@ -1236,7 +1236,7 @@ int index_storage_search_next_nonblock(s
ctx->mail = NULL;
ctx->imail = NULL;
- if (_ctx->sort_program != NULL && !ctx->failed) {
+ if (!match && _ctx->sort_program != NULL && !ctx->failed) {
/* finished searching the messages. now sort them and start
returning the messages. */
ctx->sorted = TRUE;
@@ -1245,7 +1245,7 @@ int index_storage_search_next_nonblock(s
tryagain_r);
}
- return ctx->failed ? -1 : 0;
+ return ctx->failed ? -1 : (match ? 1 : 0);
}
bool index_storage_search_next_update_seq(struct mail_search_context *_ctx)
More information about the dovecot-cvs
mailing list