dovecot-1.2: virtual: Fixed using !INBOX when INBOX wasn't in pr...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 16 01:06:30 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/71ee47b69bc7
changeset: 8947:71ee47b69bc7
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 15 18:06:21 2009 -0400
description:
virtual: Fixed using !INBOX when INBOX wasn't in prefix="" namespace.
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/plugins/virtual/virtual-config.c | 4 +++-
diffs (14 lines):
diff -r 7e639229c2c8 -r 71ee47b69bc7 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c Tue Apr 14 16:59:52 2009 -0400
+++ b/src/plugins/virtual/virtual-config.c Wed Apr 15 18:06:21 2009 -0400
@@ -120,7 +120,9 @@ virtual_config_parse_line(struct virtual
line = "INBOX";
bbox->name = p_strdup(ctx->pool, line);
if (*line == '-') line++;
- bbox->ns = mail_namespace_find(user->namespaces, &line);
+ bbox->ns = strcasecmp(line, "!INBOX") != 0 ?
+ mail_namespace_find(user->namespaces, &line) :
+ mail_namespace_find_inbox(user->namespaces);
if (bbox->ns == NULL) {
*error_r = t_strdup_printf("Namespace not found for %s",
bbox->name);
More information about the dovecot-cvs
mailing list