From ba8a3fbee3f8fca8e481ba929bce6b78296a7820 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 23 Sep 2010 19:54:26 +0100 Subject: [PATCH] config: Added conversion support for obsolete sieve/sieve_storage settings. --- src/config/old-set-parser.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index 78d4817a3b..63ae80b8bc 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -140,6 +140,18 @@ old_settings_handle_root(struct config_parser_context *ctx, set_rename(ctx, key, "ssl", value); return TRUE; } + if (strcmp(key, "sieve") == 0 || + strcmp(key, "sieve_storage") == 0) { + if (strcmp(key, "sieve_storage") == 0) + obsolete(ctx, "sieve_storage has been moved into plugin { sieve_dir }"); + else + obsolete(ctx, "%s has been moved into plugin {} section", key); + + config_apply_line(ctx, "", "plugin=", NULL); + config_apply_line(ctx, key, + t_strdup_printf("plugin/%s=%s", key, value), NULL); + return TRUE; + } if (strcmp(key, "fsync_disable") == 0) { if (strcasecmp(value, "yes") == 0) value = "never"; -- 2.47.3