return 0;
}
-static bool
-mail_storage_settings_check_namespaces(struct event *event,
- struct mail_storage_settings *set,
- const char **error_r)
+bool mail_storage_settings_check_namespaces(struct event *event,
+ struct mail_storage_settings *set,
+ const char **error_r)
{
const struct mail_namespace_settings *ns, *alias_ns;
const char *ns_name, *error;
}
static bool
-mail_storage_settings_ext_check(struct event *event, void *_set, pool_t pool,
- const char **error_r)
+mail_storage_settings_ext_check(struct event *event ATTR_UNUSED,
+ void *_set, pool_t pool, const char **error_r)
{
struct mail_storage_settings *set = _set;
struct hash_format *format;
set->mail_path, set->mail_inbox_path);
}
}
-
- if (!mail_storage_settings_check_namespaces(event, set, error_r))
- return FALSE;
return TRUE;
}
void mail_storage_2nd_settings_reset(struct settings_instance *instance,
const char *key_prefix);
+bool mail_storage_settings_check_namespaces(struct event *event,
+ struct mail_storage_settings *set,
+ const char **error_r);
+
#endif
i_assert(!user->initialized);
if (settings_get(user->event, &mail_storage_setting_parser_info, 0,
- &user->_mail_set, &error) < 0)
+ &user->_mail_set, &error) < 0 ||
+ !mail_storage_settings_check_namespaces(user->event,
+ user->_mail_set, &error))
user->error = p_strdup(user->pool, error);
else
mail_user_expand_plugins_envs(user, user->_mail_set);