]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-command - Move smtp_server_command_ready_to_reply().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 31 Aug 2020 12:44:25 +0000 (14:44 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 10 Sep 2020 12:43:56 +0000 (12:43 +0000)
New order makes more sense in the progression of command state.

src/lib-smtp/smtp-server-command.c

index 73b85c3642615ad99085bad289ea58bf7512bfa7..6edabf46c0127dc6d753c5e59f4c5680421fd887 100644 (file)
@@ -459,13 +459,6 @@ smtp_server_command_get_reply_count(struct smtp_server_command *cmd)
        return cmd->replies_expected;
 }
 
-void smtp_server_command_ready_to_reply(struct smtp_server_command *cmd)
-{
-       cmd->state = SMTP_SERVER_COMMAND_STATE_READY_TO_REPLY;
-       e_debug(cmd->context.event, "Ready to reply");
-       smtp_server_connection_trigger_output(cmd->context.conn);
-}
-
 bool smtp_server_command_next_to_reply(struct smtp_server_command **_cmd)
 {
        struct smtp_server_command *cmd = *_cmd;
@@ -476,6 +469,13 @@ bool smtp_server_command_next_to_reply(struct smtp_server_command **_cmd)
                _cmd, SMTP_SERVER_COMMAND_HOOK_NEXT, TRUE);
 }
 
+void smtp_server_command_ready_to_reply(struct smtp_server_command *cmd)
+{
+       cmd->state = SMTP_SERVER_COMMAND_STATE_READY_TO_REPLY;
+       e_debug(cmd->context.event, "Ready to reply");
+       smtp_server_connection_trigger_output(cmd->context.conn);
+}
+
 static bool
 smtp_server_command_replied(struct smtp_server_command **_cmd)
 {