dovecot-1.2: virtual: Fixed looking up namespace for save-destin...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 1 19:08:34 EEST 2010
details: http://hg.dovecot.org/dovecot-1.2/rev/40fc39475d02
changeset: 9578:40fc39475d02
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 f707fc6705c7 -r 40fc39475d02 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Mon May 31 18:58:50 2010 +0100
+++ b/src/plugins/virtual/virtual-config.c Tue Jun 01 17:08:13 2010 +0100
@@ -125,10 +125,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