# HG changeset patch # User Timo Sirainen # Date 1189211348 -10800 # Node ID 08ee6385e7a9ae4e1b25b267a8b40a9c3c22d949 # Parent 8476d665530f5194851173e38659704261319158 Fixed infinite loop if a transaction was seen for messages that weren't visible in this session yet. 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 @@ 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; }