dovecot-2.2: imapc: Prefetching wasn't done for headers if there...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 11 21:06:20 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/910727378a16
changeset: 18333:910727378a16
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 11 23:05:34 2015 +0200
description:
imapc: Prefetching wasn't done for headers if there weren't also other fields.

diffstat:

 src/lib-storage/index/imapc/imapc-mail-fetch.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 83662ff4d93d -r 910727378a16 src/lib-storage/index/imapc/imapc-mail-fetch.c
--- 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)


More information about the dovecot-cvs mailing list