dovecot-1.0: Fixed infinite loop if a transaction was seen for m...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 8 03:29:14 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/8e86137a04fb
changeset: 5391:8e86137a04fb
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 08 03:29:08 2007 +0300
description:
Fixed infinite loop if a transaction was seen for messages that weren't
visible in this session yet.
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/imap/imap-sync.c | 4 +++-
diffs (15 lines):
diff -r 34445ab6cd58 -r 8e86137a04fb src/imap/imap-sync.c
--- a/src/imap/imap-sync.c Mon Aug 27 15:58:16 2007 +0300
+++ b/src/imap/imap-sync.c Sat Sep 08 03:29:08 2007 +0300
@@ -117,8 +117,10 @@ int imap_sync_more(struct imap_sync_cont
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)
+ if (ctx->sync_rec.seq1 > ctx->messages_count) {
+ ctx->seq = 0;
continue;
+ }
ctx->sync_rec.seq2 = ctx->messages_count;
}
More information about the dovecot-cvs
mailing list