dovecot-2.0-sslstream: imap: Refresh index before starting a FET...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:57:12 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/bb04510465d3
changeset: 10517:bb04510465d3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Dec 17 14:00:30 2009 -0500
description:
imap: Refresh index before starting a FETCH, so it sees updated flags immediately.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/imap/imap-fetch.c |    3 ++-

diffs (13 lines):

diff -r 8e9e67a94e16 -r bb04510465d3 src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c	Thu Dec 17 13:33:45 2009 -0500
+++ b/src/imap/imap-fetch.c	Thu Dec 17 14:00:30 2009 -0500
@@ -340,7 +340,8 @@ int imap_fetch_begin(struct imap_fetch_c
 		ctx->fetch_data |= MAIL_FETCH_NUL_STATE;
 
 	ctx->trans = mailbox_transaction_begin(ctx->box,
-		MAILBOX_TRANSACTION_FLAG_HIDE);
+		MAILBOX_TRANSACTION_FLAG_HIDE |
+		MAILBOX_TRANSACTION_FLAG_REFRESH);
 	ctx->select_counter = ctx->client->select_counter;
 	ctx->mail = mail_alloc(ctx->trans, ctx->fetch_data,
 			       ctx->all_headers_ctx);


More information about the dovecot-cvs mailing list