From: Timo Sirainen Date: Thu, 13 Jun 2013 01:33:41 +0000 (+0300) Subject: dsync: Don't try to access mailboxes with no_mail_sync flag enabled. X-Git-Tag: 2.2.3~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0ebe2a2271759599686f3480aee6a6fe445d16e;p=thirdparty%2Fdovecot%2Fcore.git dsync: Don't try to access mailboxes with no_mail_sync flag enabled. --- diff --git a/src/doveadm/dsync/dsync-brain-mailbox.c b/src/doveadm/dsync/dsync-brain-mailbox.c index 27e8ffabd8..76f0b63497 100644 --- a/src/doveadm/dsync/dsync-brain-mailbox.c +++ b/src/doveadm/dsync/dsync-brain-mailbox.c @@ -401,6 +401,9 @@ dsync_brain_next_mailbox(struct dsync_brain *brain, struct mailbox **box_r, { int ret; + if (brain->no_mail_sync) + return FALSE; + while ((ret = dsync_brain_try_next_mailbox(brain, box_r, dsync_box_r)) == 0) ; return ret > 0;