dovecot-2.2: dsync: Always skip alias namespaces.

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 24 18:02:37 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/f5fb1ca222e3
changeset: 15919:f5fb1ca222e3
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 24 18:02:25 2013 +0200
description:
dsync: Always skip alias namespaces.

diffstat:

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

diffs (14 lines):

diff -r 5c31615ce111 -r f5fb1ca222e3 src/doveadm/dsync/dsync-brain-mailbox-tree.c
--- a/src/doveadm/dsync/dsync-brain-mailbox-tree.c	Sun Feb 24 16:43:28 2013 +0200
+++ b/src/doveadm/dsync/dsync-brain-mailbox-tree.c	Sun Feb 24 18:02:25 2013 +0200
@@ -16,6 +16,10 @@
 {
 	if (brain->sync_ns == ns)
 		return TRUE;
+	if (ns->alias_for != NULL) {
+		/* always skip aliases */
+		return FALSE;
+	}
 	if (brain->sync_visible_namespaces) {
 		if ((ns->flags & NAMESPACE_FLAG_HIDDEN) == 0)
 			return TRUE;


More information about the dovecot-cvs mailing list