dovecot-2.2: dsync: Fixed infinite loop when message suddenly go...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 21 18:12:48 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/9aba8584e5eb
changeset: 15664:9aba8584e5eb
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 21 18:12:41 2013 +0200
description:
dsync: Fixed infinite loop when message suddenly got expunged.

diffstat:

 src/doveadm/dsync/dsync-mailbox-import.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r df2e46c38c92 -r 9aba8584e5eb src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Mon Jan 21 18:12:12 2013 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Mon Jan 21 18:12:41 2013 +0200
@@ -226,6 +226,7 @@
 	if (mail_get_special(importer->cur_mail, MAIL_FETCH_GUID,
 			     &importer->cur_guid) < 0) {
 		dsync_mail_error(importer, importer->cur_mail, "GUID");
+		importer->next_local_seq = importer->cur_mail->seq + 1;
 		return importer_next_mail(importer, wanted_uid);
 	}
 	/* make sure next_local_seq gets updated in case we came here


More information about the dovecot-cvs mailing list