Mercurial > dovecot > core-2.2
diff src/doveadm/dsync/dsync-brain.c @ 19021:3fc9658c9712
dsync: Added -D parameter to disable mailbox renaming.
The renaming logic is annoyingly complex and there are some bugs left in it.
With this parameter renames are never even attempted, but instead a rename
would be done (slowly) with mailbox delete + create + fill.
Although with imapc protocol mailbox renames are rarely detected anyway.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 27 Aug 2015 13:38:44 +0200 |
parents | b900b50085fc |
children | fefaa6d09a81 |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c Thu Aug 27 12:33:47 2015 +0200 +++ b/src/doveadm/dsync/dsync-brain.c Thu Aug 27 13:38:44 2015 +0200 @@ -140,6 +140,8 @@ (flags & DSYNC_BRAIN_FLAG_NO_BACKUP_OVERWRITE) != 0; brain->no_mail_prefetch = (flags & DSYNC_BRAIN_FLAG_NO_MAIL_PREFETCH) != 0; + brain->no_mailbox_renames = + (flags & DSYNC_BRAIN_FLAG_NO_MAILBOX_RENAMES) != 0; } static void