changeset 11670:7d418cc60853 HEAD

config: Rename protocol managesieve {} to protocol sieve {}
author Timo Sirainen <tss@iki.fi>
date Thu, 01 Jul 2010 13:34:22 +0100
parents 6ef22459c39f
children 451852aa0200
files src/config/old-set-parser.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/old-set-parser.c	Thu Jul 01 13:25:41 2010 +0100
+++ b/src/config/old-set-parser.c	Thu Jul 01 13:34:22 2010 +0100
@@ -541,6 +541,13 @@
 			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) {