namespaces = NULL; ns_p = &namespaces;
- const struct mail_storage_settings *mail_set =
- mail_user_set_get_storage_set(user);
- if (array_is_created(&mail_set->namespaces))
- ns_names = array_get(&mail_set->namespaces, &count);
+ if (array_is_created(&user->set->namespaces))
+ ns_names = array_get(&user->set->namespaces, &count);
else {
ns_names = NULL;
count = 0;
DEF(STR, recipient_delimiter),
- { .type = SET_FILTER_ARRAY, .key = "namespace",
- .offset = offsetof(struct mail_storage_settings, namespaces),
- .filter_array_field_name = "namespace_name" },
-
SETTING_DEFINE_LIST_END
};
.pop3_uidl_format = "%{uid | hex(8)}%{uidvalidity | hex(8)}",
.recipient_delimiter = "+",
-
- .namespaces = ARRAY_INIT,
};
static const struct setting_keyvalue mail_storage_default_settings_keyvalue[] = {
DEF(STR, mail_log_prefix),
+ { .type = SET_FILTER_ARRAY, .key = "namespace",
+ .offset = offsetof(struct mail_user_settings, namespaces),
+ .filter_array_field_name = "namespace_name" },
DEF(STR, hostname),
DEF(STR, postmaster_address),
.mail_log_prefix = "%{service}(%{user})<%{process:pid}><%{session}>: ",
+ .namespaces = ARRAY_INIT,
.hostname = "",
.postmaster_address = "postmaster@%{user|domain|default(hostname)}",
};
ARRAY_TYPE(const_string) mail_attachment_detection_options;
- ARRAY_TYPE(const_string) namespaces;
-
enum file_lock_method parsed_lock_method;
enum fsync_mode parsed_fsync_mode;
const char *mail_log_prefix;
+ ARRAY_TYPE(const_string) namespaces;
const char *hostname;
const char *postmaster_address;