dovecot-2.2: dsync: Fixed matching namespace for the namespace p...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 24 18:07:53 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/d972b95720db
changeset: 17169:d972b95720db
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 24 19:07:03 2014 +0100
description:
dsync: Fixed matching namespace for the namespace prefix itself.

diffstat:

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

diffs (20 lines):

diff -r d9ebebdb931b -r d972b95720db src/doveadm/dsync/dsync-brain-mailbox-tree.c
--- a/src/doveadm/dsync/dsync-brain-mailbox-tree.c	Fri Mar 21 17:52:50 2014 +0200
+++ b/src/doveadm/dsync/dsync-brain-mailbox-tree.c	Mon Mar 24 19:07:03 2014 +0100
@@ -135,7 +135,15 @@
 			return FALSE;
 		prefix += part_len + 1;
 	}
-	return *name_parts != NULL;
+	if (*name_parts != NULL) {
+		/* namespace prefix found with a mailbox */
+		return TRUE;
+	}
+	if (*prefix == '\0') {
+		/* namespace prefix itself matched */
+		return TRUE;
+	}
+	return FALSE;
 }
 
 static struct mail_namespace *


More information about the dovecot-cvs mailing list