dovecot-1.2: imap: Refresh index before starting a FETCH, so it ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 17 21:00:52 EET 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/b934756a3714
changeset: 9515:b934756a3714
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 eecb23d78acf -r b934756a3714 src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c Wed Dec 16 22:50:36 2009 -0500
+++ b/src/imap/imap-fetch.c Thu Dec 17 14:00:30 2009 -0500
@@ -341,7 +341,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