dovecot-1.2: Fixed searching in virtual mailboxes.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Nov 30 01:27:26 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/8a511d7da23f
changeset: 8497:8a511d7da23f
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 29 23:15:24 2008 +0200
description:
Fixed searching in virtual mailboxes.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/index-search.c | 3 ++-
diffs (27 lines):
diff -r 1e8f718884c4 -r 8a511d7da23f src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c Sat Nov 29 22:52:54 2008 +0200
+++ b/src/lib-storage/index/index-search.c Sat Nov 29 23:15:24 2008 +0200
@@ -1163,6 +1163,7 @@ int index_storage_search_next_nonblock(s
{
struct index_search_context *ctx = (struct index_search_context *)_ctx;
struct mailbox *box = _ctx->transaction->box;
+ struct mail_private *mail_private = (struct mail_private *)mail;
unsigned int count = 0;
bool match = FALSE;
@@ -1177,7 +1178,6 @@ int index_storage_search_next_nonblock(s
}
ctx->mail = mail;
- ctx->imail = ((struct mail_private *)mail)->v.get_index_mail(mail);
if (ioloop_time - ctx->last_notify.tv_sec >=
SEARCH_NOTIFY_INTERVAL_SECS)
@@ -1185,6 +1185,7 @@ int index_storage_search_next_nonblock(s
while (box->v.search_next_update_seq(_ctx)) {
mail_set_seq(mail, _ctx->seq);
+ ctx->imail = mail_private->v.get_index_mail(mail);
T_BEGIN {
match = search_match_next(ctx);
More information about the dovecot-cvs
mailing list