Skip to content

Commit

Permalink
submission: Move generic part of MAIL command to submission-commands.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 12, 2019
1 parent baa1ecb commit f65b6d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/submission/cmd-mail.c
Expand Up @@ -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);
}

12 changes: 12 additions & 0 deletions src/submission/submission-commands.c
Expand Up @@ -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);
}

0 comments on commit f65b6d8

Please sign in to comment.