]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm-dsync: Clarify why ctx->replicator_notify is checked with noreplicate
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 28 May 2019 07:43:39 +0000 (10:43 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 28 May 2019 07:53:58 +0000 (10:53 +0300)
src/doveadm/doveadm-dsync.c

index 0a7c94de1c33ea0a5c50fb95e5d48bf631fa5f44..beb164bd06aaa6d68200c2fdfdadb0148dff0607 100644 (file)
@@ -1181,6 +1181,8 @@ cmd_dsync_server_run(struct doveadm_mail_cmd_context *_ctx,
        enum mail_error mail_error;
 
        if (!cli) {
+               /* replicator_notify indicates here automated attempt,
+                  we still want to allow manual sync/backup */
                if (ctx->replicator_notify &&
                    mail_user_plugin_getenv_bool(_ctx->cur_mail_user, "noreplicate")) {
                        _ctx->exit_code = DOVEADM_EX_NOREPLICATE;