}
/* </settings checks> */
-bool mail_user_check_namespace_settings(struct mail_user *user,
- const struct mail_storage_settings *set,
- const char **error_r)
+bool mail_user_settings_update_special_use(struct mail_user *user,
+ const struct mail_storage_settings *set,
+ const char **error_r)
{
const struct mail_namespace_settings *ns;
const char *ns_name, *error;
void mail_storage_2nd_settings_reset(struct settings_instance *instance,
const char *key_prefix);
-bool mail_user_check_namespace_settings(struct mail_user *user,
- const struct mail_storage_settings *set,
- const char **error_r);
+bool mail_user_settings_update_special_use(struct mail_user *user,
+ const struct mail_storage_settings *set,
+ const char **error_r);
#endif
i_assert(!user->initialized);
+ /* We need to figure out early if we should advertise SPECIAL-USE IMAP
+ capability. The CAPABILITY reply is sent to client before
+ mail_namespaces_init() is called, so it needs to be done here. */
if (settings_get(user->event, &mail_storage_setting_parser_info, 0,
&user->_mail_set, &error) < 0 ||
- !mail_user_check_namespace_settings(user, user->_mail_set, &error))
+ !mail_user_settings_update_special_use(user, user->_mail_set, &error))
user->error = p_strdup(user->pool, error);
else
mail_user_expand_plugins_envs(user, user->_mail_set);