dovecot-2.0: virtual: Fixed looking up namespace for save-destin...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 1 19:08:17 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/9bd63ce9db85
changeset: 11444:9bd63ce9db85
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 01 17:08:13 2010 +0100
description:
virtual: Fixed looking up namespace for save-destination mailbox (!ns/box)

diffstat:

 src/plugins/virtual/virtual-config.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r d4b29a288fa1 -r 9bd63ce9db85 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c	Tue Jun 01 16:58:17 2010 +0100
+++ b/src/plugins/virtual/virtual-config.c	Tue Jun 01 17:08:13 2010 +0100
@@ -131,10 +131,10 @@
 	if (strcasecmp(line, "INBOX") == 0)
 		line = "INBOX";
 	bbox->name = p_strdup(ctx->pool, line);
-	if (*line == '-') line++;
-	bbox->ns = strcasecmp(line, "!INBOX") != 0 ?
-		mail_namespace_find(user->namespaces, &line) :
-		mail_namespace_find_inbox(user->namespaces);
+	if (*line == '-' || *line == '!') line++;
+	bbox->ns = strcasecmp(line, "INBOX") == 0 ?
+		mail_namespace_find_inbox(user->namespaces) :
+		mail_namespace_find(user->namespaces, &line);
 	if (bbox->ns == NULL) {
 		*error_r = t_strdup_printf("Namespace not found for %s",
 					   bbox->name);


More information about the dovecot-cvs mailing list