From: Timo Sirainen Date: Tue, 17 Sep 2013 21:00:05 +0000 (+0300) Subject: dsync: Don't attempt to access mailbox contents with -g "" or -m "" parameter. X-Git-Tag: 2.2.6~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=329c2181e609b39294cc9cc76921a96a15e8f8a2;p=thirdparty%2Fdovecot%2Fcore.git dsync: Don't attempt to access mailbox contents with -g "" or -m "" parameter. --- diff --git a/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c b/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c index 7f7ee1357c..b7d23d091a 100644 --- a/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c +++ b/src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c @@ -28,6 +28,11 @@ sync_create_box(struct dsync_brain *brain, struct mailbox *box, 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",