dovecot-2.2: replication plugin: Actually, use empty mail_replic...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 13:06:12 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/c1c67bdc8752
changeset: 17787:c1c67bdc8752
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 10 16:05:32 2014 +0300
description:
replication plugin: Actually, use empty mail_replica as "replication is disabled".

diffstat:

 src/plugins/replication/replication-plugin.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 95c2f5916958 -r c1c67bdc8752 src/plugins/replication/replication-plugin.c
--- a/src/plugins/replication/replication-plugin.c	Wed Sep 10 15:54:58 2014 +0300
+++ b/src/plugins/replication/replication-plugin.c	Wed Sep 10 16:05:32 2014 +0300
@@ -307,7 +307,8 @@
 	struct replication_user *ruser;
 	const char *value;
 
-	if (mail_user_plugin_getenv(user, "replication_disabled") != NULL)
+	value = mail_user_plugin_getenv(user, "mail_replica");
+	if (value == NULL || value[0] == '\0')
 		return;
 
 	ruser = p_new(user->pool, struct replication_user, 1);


More information about the dovecot-cvs mailing list