From: Timo Sirainen Date: Wed, 11 Mar 2015 21:05:34 +0000 (+0200) Subject: imapc: Prefetching wasn't done for headers if there weren't also other fields. X-Git-Tag: 2.2.16~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13a7cda8a48bba9f360efe9048913eef741fff30;p=thirdparty%2Fdovecot%2Fcore.git imapc: Prefetching wasn't done for headers if there weren't also other fields. --- diff --git a/src/lib-storage/index/imapc/imapc-mail-fetch.c b/src/lib-storage/index/imapc/imapc-mail-fetch.c index c104fe9c1c..c60c9ab707 100644 --- a/src/lib-storage/index/imapc/imapc-mail-fetch.c +++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c @@ -315,7 +315,7 @@ bool imapc_mail_prefetch(struct mail *_mail) 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)