]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Added conversion support for obsolete sieve/sieve_storage settings.
authorTimo Sirainen <tss@iki.fi>
Thu, 23 Sep 2010 18:54:26 +0000 (19:54 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 23 Sep 2010 18:54:26 +0000 (19:54 +0100)
src/config/old-set-parser.c

index 78d4817a3b5969d830ea5da5da2c39374d989738..63ae80b8bc506b797c7a2866e5726325f56f1d9c 100644 (file)
@@ -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";