# HG changeset patch # User Timo Sirainen # Date 1239833181 14400 # Node ID 71ee47b69bc70952a7aeccd281a5f57d1d3c97d3 # Parent 7e639229c2c865babbf0ebc78b3e91eff389bb27 virtual: Fixed using !INBOX when INBOX wasn't in prefix="" namespace. 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 @@ 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);