From: Timo Sirainen Date: Tue, 22 Jul 2008 13:41:46 +0000 (+0300) Subject: deliver: Fixed reading namespace settings. X-Git-Tag: 1.2.alpha1~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cd53638e375b6bf38083c2d8452d42da94202e2;p=thirdparty%2Fdovecot%2Fcore.git deliver: Fixed reading namespace settings. --HG-- branch : HEAD --- diff --git a/src/deliver/deliver.c b/src/deliver/deliver.c index 7f80289fd5..6448e04cfb 100644 --- a/src/deliver/deliver.c +++ b/src/deliver/deliver.c @@ -378,25 +378,27 @@ static void config_file_init(const char *path) lda_section = FALSE; plugin_section = FALSE; pop3_section = FALSE; - ns_section = FALSE; - if (ns_location) - ns_location = FALSE; - else { - env_put(t_strdup_printf( - "NAMESPACE_%u=", ns_idx)); - } - if (ns_list) - ns_list = FALSE; - else { - env_put(t_strdup_printf( - "NAMESPACE_%u_LIST=1", ns_idx)); - } - if (ns_subscriptions) - ns_subscriptions = FALSE; - else { - env_put(t_strdup_printf( - "NAMESPACE_%u_SUBSCRIPTIONS=1", - ns_idx)); + if (ns_section) { + ns_section = FALSE; + if (ns_location) + ns_location = FALSE; + else { + env_put(t_strdup_printf( + "NAMESPACE_%u=", ns_idx)); + } + if (ns_list) + ns_list = FALSE; + else { + env_put(t_strdup_printf( + "NAMESPACE_%u_LIST=1", ns_idx)); + } + if (ns_subscriptions) + ns_subscriptions = FALSE; + else { + env_put(t_strdup_printf( + "NAMESPACE_%u_SUBSCRIPTIONS=1", + ns_idx)); + } } } continue;