Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8497:8a511d7da23f HEAD
Fixed searching in virtual mailboxes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 29 Nov 2008 23:15:24 +0200 |
parents | 1e8f718884c4 |
children | fb5fedcf4deb |
files | src/lib-storage/index/index-search.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ { 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 @@ } 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 @@ 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);