Mercurial > dovecot > core-2.2
changeset 10601:1a7c861bca43 HEAD
Namespaces can now have names. This could make some types of configuration cleaner.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 28 Jan 2010 22:39:45 +0200 |
parents | 20963e8ec560 |
children | de1bf8a51556 |
files | src/lib-storage/mail-storage-settings.c src/lib-storage/mail-storage-settings.h |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ { 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 @@ }; const struct mail_namespace_settings mail_namespace_default_settings = { + .name = "", .type = "private:shared:public", .separator = "", .prefix = "", @@ -115,7 +117,7 @@ .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),