]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Remove old_namespace()
authorBaofeng Wang <baofeng.wang@dovecot.fi>
Wed, 20 Apr 2016 14:27:50 +0000 (17:27 +0300)
committerGitLab <gitlab@git.dovecot.net>
Tue, 3 May 2016 16:48:36 +0000 (19:48 +0300)
From config/old-set-parser.c, and its caller. The namespace section
named "private", "shared" or "public" is obsolete accordingly.

src/config/old-set-parser.c

index 85c6260390c8ae91679d5201b57e7887257036d4..b8503e7227294cae74649aaa485c8cb4f4fce2bb 100644 (file)
@@ -510,21 +510,6 @@ static bool old_auth_section(struct config_parser_context *ctx,
        return FALSE;
 }
 
-static bool old_namespace(struct config_parser_context *ctx,
-                         const char *value)
-{
-       if (strcmp(value, "private") != 0 &&
-           strcmp(value, "shared") != 0 &&
-           strcmp(value, "public") != 0)
-               return FALSE;
-
-       obsolete(ctx, "namespace %s {} has been replaced by namespace { type=%s }", value, value);
-       config_parser_apply_line(ctx, CONFIG_LINE_TYPE_SECTION_BEGIN, "namespace", "");
-       config_parser_apply_line(ctx, CONFIG_LINE_TYPE_KEYVALUE,
-                                "type", value);
-       return TRUE;
-}
-
 static void socket_apply(struct config_parser_context *ctx)
 {
        const struct socket_set *set = &ctx->old->socket_set;
@@ -608,7 +593,7 @@ bool old_settings_handle(struct config_parser_context *ctx,
                        ctx->old->auth_section = 1;
                        return TRUE;
                } else if (ctx->pathlen == 0 && strcmp(key, "namespace") == 0)
-                       return old_namespace(ctx, value);
+                       return TRUE;
                else if (ctx->pathlen == 0 && strcmp(key, "protocol") == 0 &&
                         strcmp(value, "managesieve") == 0) {
                        obsolete(ctx, "protocol managesieve {} has been replaced by protocol sieve { }");