dovecot-2.2: imapc: Use GUIDs from cache.

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 11 15:55:16 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/f32ddc04fce7
changeset: 18328:f32ddc04fce7
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 11 17:54:27 2015 +0200
description:
imapc: Use GUIDs from cache.

diffstat:

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

diffs (21 lines):

diff -r 946be805b3cc -r f32ddc04fce7 src/lib-storage/index/imapc/imapc-mail.c
--- a/src/lib-storage/index/imapc/imapc-mail.c	Wed Mar 11 17:54:21 2015 +0200
+++ b/src/lib-storage/index/imapc/imapc-mail.c	Wed Mar 11 17:54:27 2015 +0200
@@ -11,6 +11,8 @@
 #include "imapc-client.h"
 #include "imapc-storage.h"
 
+static bool imapc_mail_get_cached_guid(struct mail *_mail);
+
 struct mail *
 imapc_mail_alloc(struct mailbox_transaction_context *t,
 		 enum mail_fetch_field wanted_fields,
@@ -300,6 +302,8 @@
 		    !IMAPC_BOX_HAS_FEATURE(mbox, IMAPC_FEATURE_RFC822_SIZE))
 			data->access_part |= READ_HDR | READ_BODY;
 	}
+	if ((data->wanted_fields & MAIL_FETCH_GUID) != 0)
+		(void)imapc_mail_get_cached_guid(_mail);
 
 	if (data->access_part == 0 && data->wanted_headers != NULL &&
 	    !IMAPC_BOX_HAS_FEATURE(mbox, IMAPC_FEATURE_FETCH_HEADERS)) {


More information about the dovecot-cvs mailing list