dovecot-2.0: config: Added conversion support for obsolete sieve...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 23 21:54:29 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/0569f9f5b754
changeset: 12168:0569f9f5b754
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 23 19:54:26 2010 +0100
description:
config: Added conversion support for obsolete sieve/sieve_storage settings.
diffstat:
src/config/old-set-parser.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 5b83114df036 -r 0569f9f5b754 src/config/old-set-parser.c
--- a/src/config/old-set-parser.c Thu Sep 23 19:34:31 2010 +0100
+++ b/src/config/old-set-parser.c Thu Sep 23 19:54:26 2010 +0100
@@ -140,6 +140,18 @@
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";
More information about the dovecot-cvs
mailing list