dovecot-2.0: Namespaces can now have names. This could make some...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 28 22:39:49 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/1a7c861bca43
changeset: 10601:1a7c861bca43
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 28 22:39:45 2010 +0200
description:
Namespaces can now have names. This could make some types of configuration cleaner.
diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
src/lib-storage/mail-storage-settings.c | 4 +++-
src/lib-storage/mail-storage-settings.h | 1 +
diffs (39 lines):
diff -r 20963e8ec560 -r 1a7c861bca43 src/lib-storage/mail-storage-settings.c
--- a/src/lib-storage/mail-storage-settings.c Thu Jan 28 22:18:05 2010 +0200
+++ b/src/lib-storage/mail-storage-settings.c Thu Jan 28 22:39:45 2010 +0200
@@ -82,6 +82,7 @@ const struct setting_parser_info mail_st
{ type, #name, offsetof(struct mail_namespace_settings, name), NULL }
static const struct setting_define mail_namespace_setting_defines[] = {
+ DEF(SET_STR, name),
DEF(SET_ENUM, type),
DEF(SET_STR, separator),
DEF(SET_STR_VARS, prefix),
@@ -99,6 +100,7 @@ static const struct setting_define mail_
};
const struct mail_namespace_settings mail_namespace_default_settings = {
+ .name = "",
.type = "private:shared:public",
.separator = "",
.prefix = "",
@@ -115,7 +117,7 @@ const struct setting_parser_info mail_na
.defines = mail_namespace_setting_defines,
.defaults = &mail_namespace_default_settings,
- .type_offset = offsetof(struct mail_namespace_settings, prefix),
+ .type_offset = offsetof(struct mail_namespace_settings, name),
.struct_size = sizeof(struct mail_namespace_settings),
.parent_offset = offsetof(struct mail_namespace_settings, user_set),
diff -r 20963e8ec560 -r 1a7c861bca43 src/lib-storage/mail-storage-settings.h
--- a/src/lib-storage/mail-storage-settings.h Thu Jan 28 22:18:05 2010 +0200
+++ b/src/lib-storage/mail-storage-settings.h Thu Jan 28 22:39:45 2010 +0200
@@ -31,6 +31,7 @@ struct mail_storage_settings {
};
struct mail_namespace_settings {
+ const char *name;
const char *type;
const char *separator;
const char *prefix;
More information about the dovecot-cvs
mailing list