]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: commands: Added structural comments.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 17 Sep 2017 12:28:33 +0000 (14:28 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:15 +0000 (00:08 +0100)
src/lmtp/commands.c

index f7f12dec1e14abd2bd26ecb1b1d6da7e7f1de509..6e1fd9479bf9155739bf3b7377103a37177ca99b 100644 (file)
 
 #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;