bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2006-2018 Dovecot authors, see the included COPYING file */
01e451386c5f25189b13569ef4c9d2a19ee90d49Timo Sirainenbool cmd_x_cancel(struct client_command_context *cmd)
01e451386c5f25189b13569ef4c9d2a19ee90d49Timo Sirainen for (; cancel_cmd != NULL; cancel_cmd = cancel_cmd->next) {
01e451386c5f25189b13569ef4c9d2a19ee90d49Timo Sirainen if (cancel_cmd->tag != NULL && cancel_cmd != cmd &&
01e451386c5f25189b13569ef4c9d2a19ee90d49Timo Sirainen client_send_tagline(cmd, "OK Command cancelled.");
01e451386c5f25189b13569ef4c9d2a19ee90d49Timo Sirainen client_send_tagline(cmd, "NO Command tag not found.");