dovecot-1.3: virtual: Fixed using !INBOX when INBOX wasn't in pr...
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Thu Apr 16 01:06:36 EEST 2009
    
    
  
details:   http://hg.dovecot.org/dovecot-1.3/rev/def8b99b1a02
changeset: 9110:def8b99b1a02
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 4753aa4f1626 -r def8b99b1a02 src/plugins/virtual/virtual-config.c
--- a/src/plugins/virtual/virtual-config.c	Tue Apr 14 16:51:36 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