]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
deliver: Fixed reading namespace settings.
authorTimo Sirainen <tss@iki.fi>
Tue, 22 Jul 2008 13:41:46 +0000 (16:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 22 Jul 2008 13:41:46 +0000 (16:41 +0300)
--HG--
branch : HEAD

src/deliver/deliver.c

index 7f80289fd509d5466600a9c05c8aa441ef8642db..6448e04cfbc1c9dd7672e7ad269dd024dfc95426 100644 (file)
@@ -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;