dovecot-2.0: config: Rename protocol managesieve {} to protocol ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 1 15:34:30 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/7d418cc60853
changeset: 11670:7d418cc60853
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 01 13:34:22 2010 +0100
description:
config: Rename protocol managesieve {} to protocol sieve {}

diffstat:

 src/config/old-set-parser.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 6ef22459c39f -r 7d418cc60853 src/config/old-set-parser.c
--- 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) {


More information about the dovecot-cvs mailing list