str_append_c(str, SETTINGS_SEPARATOR);
str_append(str, info_type_name_find(info));
}
- str_append_c(str, '=');
- str_append(str, section_name);
- ret = settings_parse_line(parser, str_c(str));
+ ret = settings_parse_keyvalue(parser, str_c(str), section_name);
i_assert(ret > 0);
return 0;
}
struct dsync_brain *brain2;
struct mail_user *user2;
struct setting_parser_context *set_parser;
- const char *set_line, *location;
+ const char *location;
bool brain1_running, brain2_running, changed1, changed2;
int ret;
/* 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);
- set_line = t_strconcat("mail_location=", location, NULL);
- if (settings_parse_line(set_parser, set_line) < 0)
+ if (settings_parse_keyvalue(set_parser, "mail_location", location) < 0)
i_unreached();
ret = mail_storage_service_next(ctx->ctx.storage_service,
ctx->ctx.cur_service_user, &user2);
const char *key, const char *value)
{
struct setting_parser_context *set_parser = user->set_parser;
- const char *str;
if (master_service_set_has_config_override(ctx->service, key)) {
/* this setting was already overridden with -o parameter */
return;
}
- str = t_strconcat(key, "=", value, NULL);
- if (settings_parse_line(set_parser, str) < 0) {
- i_fatal("Invalid userdb input '%s': %s", str,
+ if (settings_parse_keyvalue(set_parser, key, value) < 0) {
+ i_fatal("Invalid userdb input %s=%s: %s", key, value,
settings_parser_get_error(set_parser));
}
}