# HG changeset patch # User Timo Sirainen # Date 1269654840 -7200 # Node ID 0cf38dcd8ced2b280001a05efd162b7700b6193e # Parent 59591ed0461008cc0c10b1a1bf9b8c26dd061754 Don't double-expand mail_location %variables when namespace location is empty. diff -r 59591ed04610 -r 0cf38dcd8ced src/master/mail-process.c --- a/src/master/mail-process.c Mon Mar 22 02:16:48 2010 +0200 +++ b/src/master/mail-process.c Sat Mar 27 03:54:00 2010 +0200 @@ -277,9 +277,10 @@ default_location = ""; for (i = 1; ns != NULL; i++, ns = ns->next) { - location = *ns->location != '\0' ? ns->location : - default_location; - location = expand_mail_env(location, table); + if (*ns->location == '\0') + location = default_location; + else + location = expand_mail_env(ns->location, table); env_put(t_strdup_printf("NAMESPACE_%u=%s", i, location)); if (ns->separator != NULL) {