]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Refresh index before starting a FETCH, so it sees updated flags immediately.
authorTimo Sirainen <tss@iki.fi>
Thu, 17 Dec 2009 19:00:30 +0000 (14:00 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 17 Dec 2009 19:00:30 +0000 (14:00 -0500)
--HG--
branch : HEAD

src/imap/imap-fetch.c

index 19e8b7983919092a1383349347946c5665d26c1c..b16842b3d041618a2b9efe15bed35ece6fb60f12 100644 (file)
@@ -340,7 +340,8 @@ int imap_fetch_begin(struct imap_fetch_context *ctx)
                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);