dovecot-2.2: replication plugin: Added replication_disabled sett...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 12:55:35 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/95c2f5916958
changeset: 17786:95c2f5916958
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 10 15:54:58 2014 +0300
description:
replication plugin: Added replication_disabled setting.

diffstat:

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

diffs (13 lines):

diff -r ee3db95744f5 -r 95c2f5916958 src/plugins/replication/replication-plugin.c
--- a/src/plugins/replication/replication-plugin.c	Wed Sep 10 14:48:58 2014 +0300
+++ b/src/plugins/replication/replication-plugin.c	Wed Sep 10 15:54:58 2014 +0300
@@ -307,6 +307,9 @@
 	struct replication_user *ruser;
 	const char *value;
 
+	if (mail_user_plugin_getenv(user, "replication_disabled") != NULL)
+		return;
+
 	ruser = p_new(user->pool, struct replication_user, 1);
 	ruser->module_ctx.super = *v;
 	user->vlast = &ruser->module_ctx.super;


More information about the dovecot-cvs mailing list