]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Rename protocol managesieve {} to protocol sieve {}
authorTimo Sirainen <tss@iki.fi>
Thu, 1 Jul 2010 12:34:22 +0000 (13:34 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 1 Jul 2010 12:34:22 +0000 (13:34 +0100)
--HG--
branch : HEAD

src/config/old-set-parser.c

index 244e91020afc5ac8ff85fa84c1c68fac274730be..8b145b947c829532cca1b6ce17224b0fe74416ce 100644 (file)
@@ -541,6 +541,13 @@ bool old_settings_handle(struct config_parser_context *ctx,
                        return TRUE;
                } else if (ctx->pathlen == 0 && strcmp(key, "namespace") == 0)
                        return old_namespace(ctx, value);
+               else if (ctx->pathlen == 0 && strcmp(key, "protocol") == 0 &&
+                        strcmp(value, "managesieve") == 0) {
+                       obsolete(ctx, "protocol managesieve {} has been replaced by protocol sieve { }");
+                       config_parser_apply_line(ctx, CONFIG_LINE_TYPE_SECTION_BEGIN,
+                                                "protocol", "sieve");
+                       return TRUE;
+               }
                break;
        case CONFIG_LINE_TYPE_SECTION_END:
                if (ctx->old->auth_section > 0) {