dovecot-2.1: imapc: Mail body wasn't always prefetched when it s...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 12 18:58:48 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/d2608fc3c9e2
changeset: 13631:d2608fc3c9e2
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 12 19:07:07 2011 +0300
description:
imapc: Mail body wasn't always prefetched when it should have been.

diffstat:

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

diffs (12 lines):

diff -r 337f4e427bb1 -r d2608fc3c9e2 src/lib-storage/index/imapc/imapc-mail.c
--- 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;


More information about the dovecot-cvs mailing list