]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Don't attempt to access mailbox contents with -g "" or -m "" parameter.
authorTimo Sirainen <tss@iki.fi>
Tue, 17 Sep 2013 21:00:05 +0000 (00:00 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 17 Sep 2013 21:00:05 +0000 (00:00 +0300)
src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c

index 7f7ee1357c5381cad57d2c70725cd7a6fb0336d1..b7d23d091ad5ba10a4712368e4e0ac6a7f05cef8 100644 (file)
@@ -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",