From: Stephan Bosch Date: Sun, 17 Sep 2017 12:28:33 +0000 (+0200) Subject: lmtp: commands: Added structural comments. X-Git-Tag: 2.3.0.rc1~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebdfdb765f3ce2176c3483b5416b51af9593aca2;p=thirdparty%2Fdovecot%2Fcore.git lmtp: commands: Added structural comments. --- diff --git a/src/lmtp/commands.c b/src/lmtp/commands.c index f7f12dec1e..6e1fd9479b 100644 --- a/src/lmtp/commands.c +++ b/src/lmtp/commands.c @@ -30,6 +30,10 @@ #define ERRSTR_TEMP_MAILBOX_FAIL "451 4.3.0 <%s> Temporary internal error" +/* + * EHLO command + */ + int cmd_lhlo(struct client *client, const char *args) { struct rfc822_parser_context parser; @@ -77,6 +81,10 @@ int cmd_lhlo(struct client *client, const char *args) return 0; } +/* + * STARTTLS command + */ + int cmd_starttls(struct client *client) { struct ostream *plain_output = client->output; @@ -105,6 +113,10 @@ int cmd_starttls(struct client *client) return 0; } +/* + * MAIL command + */ + int cmd_mail(struct client *client, const char *args) { struct smtp_address *address; @@ -167,6 +179,10 @@ int cmd_mail(struct client *client, const char *args) return 0; } +/* + * RCPT command + */ + int cmd_rcpt(struct client *client, const char *args) { struct mail_recipient *rcpt; @@ -303,6 +319,10 @@ int cmd_rcpt(struct client *client, const char *args) } } +/* + * QUIT command + */ + int cmd_quit(struct client *client, const char *args ATTR_UNUSED) { client_send_line(client, "221 2.0.0 OK"); @@ -313,12 +333,20 @@ int cmd_quit(struct client *client, const char *args ATTR_UNUSED) return -1; } +/* + * VRFY command + */ + int cmd_vrfy(struct client *client, const char *args ATTR_UNUSED) { client_send_line(client, "252 2.3.3 Try RCPT instead"); return 0; } +/* + * RSET command + */ + int cmd_rset(struct client *client, const char *args ATTR_UNUSED) { client_state_reset(client, "RSET"); @@ -326,12 +354,20 @@ int cmd_rset(struct client *client, const char *args ATTR_UNUSED) return 0; } +/* + * NOOP command + */ + int cmd_noop(struct client *client, const char *args ATTR_UNUSED) { client_send_line(client, "250 2.0.0 OK"); return 0; } +/* + * DATA command + */ + static struct istream *client_get_input(struct client *client) { struct client_state *state = &client->state; @@ -583,6 +619,10 @@ int cmd_data(struct client *client, const char *args ATTR_UNUSED) return -1; } +/* + * XCLIENT command + */ + int cmd_xclient(struct client *client, const char *args) { const char *const *tmp;