dovecot-2.2: doveadm backup: Local mailbox was deleted also when...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 6 09:22:25 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/124a7fc23706
changeset: 17887:124a7fc23706
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 06 12:21:52 2014 +0300
description:
doveadm backup: Local mailbox was deleted also when there were just new messages.

diffstat:

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

diffs (12 lines):

diff -r d7ac3056ed7c -r 124a7fc23706 src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Mon Oct 06 12:21:24 2014 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Mon Oct 06 12:21:52 2014 +0300
@@ -1437,7 +1437,7 @@
 			return;
 		}
 		if (importer->revert_local_changes &&
-		    importer->local_uid_next > 1) {
+		    importer->local_uid_next > change->uid) {
 			dsync_mailbox_revert_missing(importer, change);
 			*result_r = "Reverting local change by deleting mailbox";
 		} else if (change->guid == NULL ||


More information about the dovecot-cvs mailing list