changeset 19487:ba0dd0dcc223

lib-settings: Allow using comma as deflist separator. This means that when adding new block {}s via e.g. userdb or post-login script, the block names can now be set with block=a,b,c instead of "block=a b c". This is beneficial with e.g. passwd-file or userdb default_fields where spaces are used to separate parameters entirely.
author Timo Sirainen <tss@iki.fi>
date Tue, 08 Dec 2015 12:24:42 +0200
parents b4f2b8615da9
children a776ee107aa2
files src/lib-settings/settings-parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-settings/settings-parser.c	Tue Dec 08 10:18:48 2015 +0200
+++ b/src/lib-settings/settings-parser.c	Tue Dec 08 12:24:42 2015 +0200
@@ -568,7 +568,7 @@
 			return -1;
 	}
 
-	list = t_strsplit(value, "\t ");
+	list = t_strsplit(value, ",\t ");
 	for (; *list != NULL; list++) {
 		if (**list == '\0')
 			continue;