1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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
|