Lines Matching refs:key
65 const char *old_key, const char *key, const char *value)
67 obsolete(ctx, "%s has been renamed to %s", old_key, key);
68 config_parser_apply_line(ctx, CONFIG_LINE_TYPE_KEYVALUE, key, value);
205 const char *key, const char *value)
210 if (strcmp(key, "base_dir") == 0) {
216 if (strcmp(key, "protocols") == 0) {
260 key, value);
263 if (strcmp(key, "ssl_cert_file") == 0 ||
264 strcmp(key, "ssl_key_file") == 0 ||
265 strcmp(key, "ssl_ca_file") == 0) {
268 p = t_strdup_until(key, strrchr(key, '_'));
269 obsolete(ctx, "%s has been replaced by %s = <file", key, p);
274 if (strcmp(key, "ssl_disable") == 0) {
279 set_rename(ctx, key, "ssl", value);
282 if (strcmp(key, "ssl_parameters_regenerate") == 0 ||
283 strcmp(key, "ssl_dh_parameters_length") == 0) {
284 obsolete(ctx, "%s is no longer needed", key);
287 if (strcmp(key, "ssl_protocols") == 0) {
288 obsolete(ctx, "%s has been replaced by ssl_min_protocol", key);
300 if (strcmp(key, "sieve") == 0 ||
301 strcmp(key, "sieve_storage") == 0) {
302 if (strcmp(key, "sieve_storage") == 0)
305 obsolete(ctx, "%s has been moved into plugin {} section", key);
308 config_apply_line(ctx, key,
309 t_strdup_printf("plugin/%s=%s", key, value), NULL);
312 if (strcmp(key, "fsync_disable") == 0) {
317 set_rename(ctx, key, "mail_fsync", value);
320 if (strcmp(key, "dbox_rotate_size") == 0) {
321 set_rename(ctx, key, "mdbox_rotate_size", value);
324 if (strcmp(key, "imap_client_workarounds") == 0) {
339 key, value);
343 if (strcmp(key, "login_dir") == 0 ||
344 strcmp(key, "dbox_rotate_min_size") == 0 ||
345 strcmp(key, "dbox_rotate_days") == 0 ||
346 strcmp(key, "director_consistent_hashing") == 0 ||
347 strcmp(key, "mail_log_max_lines_per_sec") == 0 ||
348 strcmp(key, "maildir_copy_preserve_filename") == 0) {
349 obsolete(ctx, "%s has been removed", key);
353 if (strncmp(key, "auth_", 5) != 0)
354 key = t_strconcat("auth_", key, NULL);
356 key, value);
365 const char *old_key, const char *key, const char *value)
367 obsolete(ctx, "%s has been replaced by service { %s }", old_key, key);
370 config_apply_line(ctx, key,
371 t_strdup_printf("service/imap-login/%s=%s", key, value), NULL);
374 config_apply_line(ctx, key,
375 t_strdup_printf("service/pop3-login/%s=%s", key, value), NULL);
380 config_apply_line(ctx, key,
381 t_strdup_printf("service/managesieve-login/%s=%s", key, value), NULL);
389 const char *old_key, const char *key, const char *value)
391 obsolete(ctx, "%s has been replaced by service { %s }", old_key, key);
394 config_apply_line(ctx, key,
395 t_strdup_printf("service/imap/%s=%s", key,value), NULL);
398 config_apply_line(ctx, key,
399 t_strdup_printf("service/pop3/%s=%s", key,value), NULL);
402 config_apply_line(ctx, key,
403 t_strdup_printf("service/managesieve/%s=%s", key,value), NULL);
410 const char *old_key, const char *key, const char *value)
412 obsolete(ctx, "%s has been replaced by service auth { %s }", old_key, key);
413 config_apply_line(ctx, key,
414 t_strdup_printf("service/auth/%s=%s", key,value), NULL);
438 const char *key, const char *value)
450 if (strcmp(key, "ssl_listen") == 0 ||
451 (strcmp(key, "listen") == 0 &&
453 const char *ssl = strcmp(key, "ssl_listen") == 0 ? "s" : "";
461 obsolete(ctx, "%s=..:port has been replaced by service { inet_listener { port } }", key);
480 key, value);
482 obsolete(ctx, "protocol { %s } has been replaced by service { inet_listener { address } }", key);
500 if (strcmp(key, "login_chroot") == 0) {
506 config_apply_login_set(ctx, old_section, key, "chroot", value);
509 if (strcmp(key, "login_user") == 0) {
510 config_apply_login_set(ctx, old_section, key, "user", value);
513 if (strcmp(key, "login_executable") == 0) {
514 config_apply_login_set(ctx, old_section, key, "executable", value);
517 if (strcmp(key, "login_process_size") == 0) {
518 config_apply_login_set(ctx, old_section, key, "vsz_limit",
522 if (strcmp(key, "login_process_per_connection") == 0) {
523 config_apply_login_set(ctx, old_section, key, "service_count",
527 if (strcmp(key, "login_processes_count") == 0) {
528 config_apply_login_set(ctx, old_section, key, "process_min_avail", value);
531 if (strcmp(key, "login_max_processes_count") == 0) {
532 config_apply_login_set(ctx, old_section, key, "process_limit", value);
535 if (strcmp(key, "login_max_connections") == 0) {
536 config_apply_login_set(ctx, old_section, key, "client_limit", value);
539 if (strcmp(key, "login_process_size") == 0) {
540 config_apply_login_set(ctx, old_section, key, "vsz_limit",
545 if (strcmp(key, "max_mail_processes") == 0) {
546 config_apply_mail_set(ctx, old_section, key, "process_limit", value);
549 if (strcmp(key, "mail_executable") == 0) {
550 config_apply_mail_set(ctx, old_section, key, "executable", value);
553 if (strcmp(key, "mail_process_size") == 0) {
554 config_apply_mail_set(ctx, old_section, key, "vsz_limit",
558 if (strcmp(key, "mail_drop_priv_before_exec") == 0) {
559 config_apply_mail_set(ctx, old_section, key, "drop_priv_before_exec", value);
564 if (strncmp(key, "auth_", 5) != 0)
565 key = t_strconcat("auth_", key, NULL);
568 if (strcmp(key, "auth_executable") == 0) {
569 config_apply_auth_set(ctx, key, "executable", value);
572 if (strcmp(key, "auth_process_size") == 0) {
573 config_apply_auth_set(ctx, key, "vsz_limit",
577 if (strcmp(key, "auth_user") == 0) {
578 config_apply_auth_set(ctx, key, "user", value);
581 if (strcmp(key, "auth_chroot") == 0) {
582 config_apply_auth_set(ctx, key, "chroot", value);
585 if (strcmp(key, "auth_cache_size") == 0 &&
589 config_apply_line(ctx, key,
590 t_strdup_printf("%s=%sM", key, value), NULL);
593 if (strcmp(key, "auth_count") == 0) {
603 if (strcmp(key, "path") == 0)
605 else if (strcmp(key, "mode") == 0)
607 else if (strcmp(key, "user") == 0)
609 else if (strcmp(key, "group") == 0)
621 const char *key, const char *value)
631 if ((strcmp(key, "passdb") == 0 || strcmp(key, "userdb") == 0) &&
634 key, value, key, value);
635 config_parser_apply_line(ctx, CONFIG_LINE_TYPE_SECTION_BEGIN, key, "");
640 if (strcmp(key, "socket") == 0 && ctx->old->auth_section == 2) {
655 if ((strcmp(key, "master") == 0 || strcmp(key, "client") == 0) &&
657 ctx->old->socket_set.master = strcmp(key, "master") == 0;
713 const char *key, const char *value)
730 ret = old_settings_handle_proto(ctx, key, value);
735 return old_settings_handle_root(ctx, key, value);
740 return old_auth_section(ctx, key, value);
741 else if (ctx->pathlen == 0 && strcmp(key, "auth") == 0) {
745 } else if (ctx->pathlen == 0 && strcmp(key, "protocol") == 0 &&