From: Timo Sirainen Date: Fri, 9 Dec 2011 15:49:13 +0000 (+0200) Subject: lib-storage: Fixed search when mail prefetching is enabled. X-Git-Tag: 2.1.rc2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bac5a7e1cfdd7f5e565c757ef1480e651e78d8fc;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Fixed search when mail prefetching is enabled. --- diff --git a/src/lib-storage/index/index-search.c b/src/lib-storage/index/index-search.c index 12ebbc15be..d66683277a 100644 --- a/src/lib-storage/index/index-search.c +++ b/src/lib-storage/index/index-search.c @@ -1423,6 +1423,8 @@ static int search_more_with_mail(struct index_search_context *ctx, SEARCH_NOTIFY_INTERVAL_SECS) index_storage_search_notify(box, ctx); + mail_search_args_reset(_ctx->args->args, FALSE); + while (box->v.search_next_update_seq(_ctx)) { mail_set_seq(mail, _ctx->seq);