struct dsync_brain *brain2;
struct mail_user *user2;
struct mail_namespace *ns, *ns2;
- struct setting_parser_context *set_parser;
const char *location, *error;
bool brain1_running, brain2_running, changed1, changed2;
bool remote_only_changes;
/* update mail_location and create another user for the
second location. */
- set_parser = mail_storage_service_user_get_settings_parser(ctx->ctx.cur_service_user);
- if (settings_parse_keyvalue(set_parser, "mail_location", location) < 0)
+ if (mail_storage_service_user_set_setting(ctx->ctx.cur_service_user,
+ "mail_location", location,
+ &error) <= 0)
i_unreached();
ret = mail_storage_service_next(ctx->ctx.storage_service,
ctx->ctx.cur_service_user,
struct smtp_proxy_data proxy_data;
struct mail_namespace *ns;
struct setting_parser_context *set_parser;
- const char *line, *error, *username;
+ const char *error, *username;
int ret;
input = mail_storage_service_user_get_input(service_user);
advertised that it's going to timeout the connection.
this avoids duplicate deliveries in case the delivery
succeeds after the proxy has already disconnected from us. */
- line = t_strdup_printf("mail_max_lock_timeout=%us",
+ const char *value = t_strdup_printf("%us",
proxy_data.timeout_secs <= 1 ? 1 :
proxy_data.timeout_secs-1);
- if (settings_parse_line(set_parser, line) < 0)
+ if (mail_storage_service_user_set_setting(service_user,
+ "mail_max_lock_timeout", value, &error) <= 0)
i_unreached();
}
master_service_settings_free(mail_set);