Mercurial > dovecot > core-2.2
changeset 18333:910727378a16
imapc: Prefetching wasn't done for headers if there weren't also other fields.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 11 Mar 2015 23:05:34 +0200 |
parents | 83662ff4d93d |
children | 072170010eac |
files | src/lib-storage/index/imapc/imapc-mail-fetch.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mail-fetch.c Wed Mar 11 20:38:52 2015 +0200 +++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c Wed Mar 11 23:05:34 2015 +0200 @@ -315,7 +315,7 @@ imapc_mail_update_access_parts(&mail->imail); fields = imapc_mail_get_wanted_fetch_fields(mail); - if (fields != 0) T_BEGIN { + if (fields != 0 || data->wanted_headers != NULL) T_BEGIN { if (imapc_mail_send_fetch(_mail, fields, data->wanted_headers == NULL ? NULL : data->wanted_headers->name) > 0)