dovecot: Fixed infinite loop if a transaction was seen for messa...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 8 03:29:17 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/08ee6385e7a9
changeset: 6355:08ee6385e7a9
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 8476d665530f -r 08ee6385e7a9 src/imap/imap-sync.c
--- a/src/imap/imap-sync.c Sun Sep 02 07:44:50 2007 +0300
+++ b/src/imap/imap-sync.c Sat Sep 08 03:29:08 2007 +0300
@@ -123,8 +123,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