changeset 18748:00ef92771cd9

lib-storage: If no namespaces were defined, the autocreated namespace settings were a bit wrong.
author Timo Sirainen <tss@iki.fi>
date Sun, 24 May 2015 17:50:26 -0400
parents 5f95cc2bd7aa
children 6fcaaaf13171
files src/lib-storage/mail-namespace.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/mail-namespace.c	Sun May 24 17:40:53 2015 -0400
+++ b/src/lib-storage/mail-namespace.c	Sun May 24 17:50:26 2015 -0400
@@ -429,6 +429,9 @@
 	inbox_set = p_new(user->pool, struct mail_namespace_settings, 1);
 	*inbox_set = mail_namespace_default_settings;
 	inbox_set->inbox = TRUE;
+	/* enums must be changed */
+	inbox_set->type = "private";
+	inbox_set->list = "yes";
 
 	unexpanded_inbox_set = p_new(user->pool, struct mail_namespace_settings, 1);
 	*unexpanded_inbox_set = *inbox_set;