diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/submission/submission-commands.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/submission/submission-commands.h')
-rw-r--r-- | src/submission/submission-commands.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/src/submission/submission-commands.h b/src/submission/submission-commands.h new file mode 100644 index 0000000..3fa25cc --- /dev/null +++ b/src/submission/submission-commands.h @@ -0,0 +1,98 @@ +#ifndef SUBMISSION_COMMANDS_H +#define SUBMISSION_COMMANDS_H + +/* + * HELO command + */ + +void submission_helo_reply_submit(struct smtp_server_cmd_ctx *cmd, + struct smtp_server_cmd_helo *data); + +int cmd_helo(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + struct smtp_server_cmd_helo *data); + +int client_default_cmd_helo(struct client *client, + struct smtp_server_cmd_ctx *cmd, + struct smtp_server_cmd_helo *data); + +/* + * MAIL command + */ + +int cmd_mail(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + struct smtp_server_cmd_mail *data); + +int client_default_cmd_mail(struct client *client, + struct smtp_server_cmd_ctx *cmd, + struct smtp_server_cmd_mail *data); + +/* + * RCPT command + */ + +int cmd_rcpt(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + struct smtp_server_recipient *rcpt); + +int client_default_cmd_rcpt(struct client *client ATTR_UNUSED, + struct smtp_server_cmd_ctx *cmd, + struct submission_recipient *srcpt); + +/* + * RSET command + */ + +int cmd_rset(void *conn_ctx, struct smtp_server_cmd_ctx *cmd); + +int client_default_cmd_rset(struct client *client, + struct smtp_server_cmd_ctx *cmd); + +/* + * DATA/BDAT commands + */ + +int cmd_data_begin(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + struct smtp_server_transaction *trans, + struct istream *data_input); +int cmd_data_continue(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + struct smtp_server_transaction *trans); + +int client_default_cmd_data(struct client *client, + struct smtp_server_cmd_ctx *cmd, + struct smtp_server_transaction *trans, + struct istream *data_input, uoff_t data_size); + +/* + * BURL command + */ + +void cmd_burl(struct smtp_server_cmd_ctx *cmd, const char *params); + +/* + * VRFY command + */ + +int cmd_vrfy(void *conn_ctx, struct smtp_server_cmd_ctx *cmd, + const char *param); + +int client_default_cmd_vrfy(struct client *client, + struct smtp_server_cmd_ctx *cmd, const char *param); + +/* + * NOOP command + */ + +int cmd_noop(void *conn_ctx, struct smtp_server_cmd_ctx *cmd); + +int client_default_cmd_noop(struct client *client, + struct smtp_server_cmd_ctx *cmd); + +/* + * QUIT command + */ + +int cmd_quit(void *conn_ctx, struct smtp_server_cmd_ctx *cmd); + +int client_default_cmd_quit(struct client *client, + struct smtp_server_cmd_ctx *cmd); + +#endif |