]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: client: Add smtp_client_command_drop_callback().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 29 Sep 2018 18:39:28 +0000 (20:39 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 10 Oct 2018 09:49:07 +0000 (09:49 +0000)
src/lib-smtp/smtp-client-command.c
src/lib-smtp/smtp-client-private.h

index de77a85c7122e7a4a6bcb9b05127c5aca9308144..346502ed15c521e859b67ce1bd083b7f7abf13b8 100644 (file)
@@ -275,6 +275,12 @@ void smtp_client_command_abort(struct smtp_client_command **_cmd)
                smtp_client_connection_trigger_output(conn);
 }
 
+void smtp_client_command_drop_callback(struct smtp_client_command *cmd)
+{
+       cmd->callback = NULL;
+       cmd->context = NULL;
+}
+
 void smtp_client_command_fail_reply(struct smtp_client_command **_cmd,
                                    const struct smtp_reply *reply)
 {
index 4f9c02dc26f5c6bd81c7421eb37e2d23e85ffd40..13f52ccb41181810483c8bdeb4caee97c1aa6280 100644 (file)
@@ -196,6 +196,8 @@ int smtp_client_command_send_more(struct smtp_client_connection *conn);
 int smtp_client_command_input_reply(struct smtp_client_command *cmd,
                                    const struct smtp_reply *reply);
 
+void smtp_client_command_drop_callback(struct smtp_client_command *cmd);
+
 void smtp_client_command_fail(struct smtp_client_command **_cmd,
                              unsigned int status, const char *error);
 void smtp_client_command_fail_reply(struct smtp_client_command **_cmd,