changeset 6580:d172fb7d216f HEAD

Default to list=yes in namespaces.
author Timo Sirainen <tss@iki.fi>
date Sun, 21 Oct 2007 02:58:49 +0300
parents 825621c540b8
children d4b2df823ca5
files src/deliver/deliver.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/deliver/deliver.c	Sun Oct 21 02:45:53 2007 +0300
+++ b/src/deliver/deliver.c	Sun Oct 21 02:58:49 2007 +0300
@@ -235,7 +235,7 @@
 	char *line, *p, quote;
 	int fd, sections = 0;
 	bool lda_section = FALSE, pop3_section = FALSE, plugin_section = FALSE;
-	bool ns_section = FALSE, ns_location = FALSE;
+	bool ns_section = FALSE, ns_location = FALSE, ns_list = FALSE;
 	unsigned int ns_idx = 0;
 	size_t len;
 
@@ -313,6 +313,12 @@
 					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));
+				}
 			}
 			continue;
 		}
@@ -333,6 +339,8 @@
 					key = t_strdup_printf("NAMESPACE_%u",
 							      ns_idx);
 				} else {
+					if (strcmp(key, "list") == 0)
+						ns_list = TRUE;
 					key = t_strdup_printf("NAMESPACE_%u_%s",
 							      ns_idx, key);
 				}