dovecot: Default to list=yes in namespaces.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 21 03:00:16 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/d172fb7d216f
changeset: 6580:d172fb7d216f
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 21 02:58:49 2007 +0300
description:
Default to list=yes in namespaces.
diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
src/deliver/deliver.c | 10 +++++++++-
diffs (34 lines):
diff -r 825621c540b8 -r d172fb7d216f src/deliver/deliver.c
--- 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 @@ static void config_file_init(const char
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 @@ static void config_file_init(const char
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 @@ static void config_file_init(const char
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);
}
More information about the dovecot-cvs
mailing list