changeset 13631:d2608fc3c9e2

imapc: Mail body wasn't always prefetched when it should have been.
author Timo Sirainen <tss@iki.fi>
date Wed, 12 Oct 2011 19:07:07 +0300
parents 337f4e427bb1
children fad85406a088
files src/lib-storage/index/imapc/imapc-mail.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mail.c	Sun Oct 09 20:46:53 2011 +0300
+++ b/src/lib-storage/index/imapc/imapc-mail.c	Wed Oct 12 19:07:07 2011 +0300
@@ -150,7 +150,7 @@
 			return mail_set_aborted(_mail);
 		}
 		fetch_field = get_body ||
-			(mail->imail.wanted_fields & MAIL_FETCH_STREAM_BODY) != 0 ?
+			(data->access_part & READ_BODY) != 0 ?
 			MAIL_FETCH_STREAM_BODY : MAIL_FETCH_STREAM_HEADER;
 		if (imapc_mail_fetch(_mail, fetch_field) < 0)
 			return -1;