Mercurial > dovecot > core-2.2
changeset 4008:4e1a816a82a1 HEAD
Don't notify client about changes in messages it hasn't yet even been
notified about.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 13 Feb 2006 20:35:39 +0200 |
parents | 97a328354a13 |
children | fbff841d532a |
files | src/imap/imap-sync.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-sync.c Sun Feb 12 12:11:28 2006 +0200 +++ b/src/imap/imap-sync.c Mon Feb 13 20:35:39 2006 +0200 @@ -113,6 +113,14 @@ } } + if (ctx->sync_rec.seq2 > ctx->messages_count) { + /* don't send change notifications of messages we + haven't even announced to client yet */ + if (ctx->sync_rec.seq1 > ctx->messages_count) + continue; + ctx->sync_rec.seq2 = ctx->messages_count; + } + switch (ctx->sync_rec.type) { case MAILBOX_SYNC_TYPE_FLAGS: case MAILBOX_SYNC_TYPE_KEYWORDS: