Mercurial > dovecot > original-hg > dovecot-2.2
changeset 16764:a7be7ee98538
dsync: Don't attempt to access mailbox contents with -g "" or -m "" parameter.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Sep 2013 00:00:05 +0300 |
parents | 194383b51917 |
children | 34d3a9a883fa |
files | src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c Tue Sep 17 23:32:57 2013 +0300 +++ b/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c Wed Sep 18 00:00:05 2013 +0300 @@ -28,6 +28,11 @@ return -1; } } + if (brain->no_mail_sync) { + /* trust that create worked, we can't actually open it + and verify. */ + return 0; + } /* sync the mailbox so we can look up its latest status */ if (mailbox_sync(box, MAILBOX_SYNC_FLAG_FULL_READ) < 0) { i_error("Can't sync mailbox %s: %s",