dovecot-2.2: dsync: Don't attempt to access mailbox contents wit...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 18 00:00:17 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a7be7ee98538
changeset: 16764:a7be7ee98538
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 18 00:00:05 2013 +0300
description:
dsync: Don't attempt to access mailbox contents with -g "" or -m "" parameter.

diffstat:

 src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 194383b51917 -r a7be7ee98538 src/doveadm/dsync/dsync-brain-mailbox-tree-sync.c
--- 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",


More information about the dovecot-cvs mailing list