dovecot-1.2: QRESYNC: Fixed fallback handling to fetching expung...

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 20 22:41:02 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/36b8d97d0f58
changeset: 9447:36b8d97d0f58
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 20 15:40:51 2009 -0400
description:
QRESYNC: Fixed fallback handling to fetching expunged UIDs (again).

diffstat:

1 file changed, 5 insertions(+), 3 deletions(-)
src/imap/imap-fetch.c |    8 +++++---

diffs (19 lines):

diff -r 4a6b04c43147 -r 36b8d97d0f58 src/imap/imap-fetch.c
--- a/src/imap/imap-fetch.c	Tue Oct 20 14:12:30 2009 -0400
+++ b/src/imap/imap-fetch.c	Tue Oct 20 15:40:51 2009 -0400
@@ -238,10 +238,12 @@ static int get_expunges_fallback(struct 
 							  next_uid,
 							  mail->uid - 1);
 			}
-			if (uid_filter[i].seq2 == mail->uid)
-				next_uid = uid_filter[++i].seq1;
+			if (uid_filter[i].seq2 != mail->uid)
+				next_uid = mail->uid + 1;
+			else if (++i < count)
+				next_uid = uid_filter[i].seq1;
 			else
-				next_uid = mail->uid + 1;
+				break;
 		}
 	}
 	if (i < count) {


More information about the dovecot-cvs mailing list