From 9cd53638e375b6bf38083c2d8452d42da94202e2 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 22 Jul 2008 16:41:46 +0300 Subject: [PATCH] deliver: Fixed reading namespace settings. --HG-- branch : HEAD --- src/deliver/deliver.c | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) 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; -- 2.47.3