Mercurial > dovecot > core-2.2
changeset 21654:2c937505c112
lib-storage: Fix mail.access_type for search prefetches
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 21 Feb 2017 14:20:22 +0200 |
parents | 8f374e21547a |
children | cb11cca4eaee |
files | src/lib-storage/index/index-search.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-search.c Tue Feb 21 13:48:36 2017 +0200 +++ b/src/lib-storage/index/index-search.c Tue Feb 21 14:20:22 2017 +0200 @@ -1738,6 +1738,7 @@ i_assert(imail->mail.mail.lookup_abort == MAIL_LOOKUP_ABORT_NEVER); ctx->cur_mail = &imail->mail.mail; + ctx->cur_mail->access_type = MAIL_ACCESS_TYPE_SEARCH; mail_search_args_result_deserialize(ctx->mail_ctx.args, imail->data.search_results->data, imail->data.search_results->used); @@ -1745,6 +1746,7 @@ ret = search_match_once(ctx); search_match_finish(ctx, ret); } T_END; + ctx->cur_mail->access_type = MAIL_ACCESS_TYPE_DEFAULT; ctx->cur_mail = NULL; return ret > 0; }