]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: Move generic part of MAIL command to submission-commands.c.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 29 Aug 2018 21:25:32 +0000 (23:25 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 9 Oct 2018 06:41:17 +0000 (06:41 +0000)
src/submission/cmd-mail.c
src/submission/submission-commands.c

index 1313f8eaf52e11cc87c334a799e3e6992339c934..d5ff584a7311bff99fa430d8dfc09a6b37e64071 100644 (file)
@@ -158,12 +158,3 @@ int cmd_mail_relay(struct client *client, struct smtp_server_cmd_ctx *cmd,
                cmd_mail_proxy_cb, mail_cmd);
        return 0;
 }
-
-int cmd_mail(void *conn_ctx, struct smtp_server_cmd_ctx *cmd,
-            struct smtp_server_cmd_mail *data)
-{
-       struct client *client = conn_ctx;
-
-       return cmd_mail_relay(client, cmd, data);
-}
-
index 9d1823064da29e590bfb6726f651d7f3122f4a17..88c84ef27644b9ec97b7e43a892f689e44669933 100644 (file)
@@ -82,3 +82,15 @@ int cmd_helo(void *conn_ctx, struct smtp_server_cmd_ctx *cmd,
        submission_helo_reply_submit(cmd, data);
        return 1;
 }
+
+/*
+ * MAIL command
+ */
+
+int cmd_mail(void *conn_ctx, struct smtp_server_cmd_ctx *cmd,
+            struct smtp_server_cmd_mail *data)
+{
+       struct client *client = conn_ctx;
+
+       return cmd_mail_relay(client, cmd, data);
+}