[dovecot-cvs] dovecot/src/imap imap-sync.c,1.18,1.19
cras at dovecot.org
cras at dovecot.org
Mon Feb 13 20:35:42 EET 2006
Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv27930
Modified Files:
imap-sync.c
Log Message:
Don't notify client about changes in messages it hasn't yet even been
notified about.
Index: imap-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-sync.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- imap-sync.c 29 Jan 2006 12:41:37 -0000 1.18
+++ imap-sync.c 13 Feb 2006 18:35:39 -0000 1.19
@@ -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:
More information about the dovecot-cvs
mailing list