Mercurial > dovecot > core-2.2
changeset 17860:8aea6edb29d3
doveadm backup: Fix to earlier commit - don't try to delete an already empty mailbox.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 02 Oct 2014 12:48:00 +0300 |
parents | c02918434721 |
children | 0b4352d6dfdb |
files | src/doveadm/dsync/dsync-mailbox-import.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c Thu Oct 02 12:31:34 2014 +0300 +++ b/src/doveadm/dsync/dsync-mailbox-import.c Thu Oct 02 12:48:00 2014 +0300 @@ -1407,7 +1407,8 @@ looking it up locally. */ return; } - if (importer->revert_local_changes) + if (importer->revert_local_changes && + importer->local_uid_next > 1) dsync_mailbox_revert_missing(importer, change); else if (change->guid == NULL || !dsync_mailbox_find_common_expunged_uid(importer, change)) {