]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Moved client_rcpt_fail_all() from commands.c to lmtp-local.c.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 18 Sep 2017 21:48:51 +0000 (23:48 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:14 +0000 (00:08 +0100)
src/lmtp/commands.c
src/lmtp/lmtp-local.c
src/lmtp/lmtp-local.h

index e0cd50722b6aab095d05b30d4976f13f4e3f305d..adc0d3875f5e4e45abb44ff30b8a73e0955d7e81 100644 (file)
@@ -545,16 +545,6 @@ int cmd_noop(struct client *client, const char *args ATTR_UNUSED)
        return 0;
 }
 
-static void client_rcpt_fail_all(struct client *client)
-{
-       struct mail_recipient *const *rcptp;
-
-       array_foreach(&client->state.rcpt_to, rcptp) {
-               client_send_line(client, ERRSTR_TEMP_MAILBOX_FAIL,
-                                smtp_address_encode((*rcptp)->address));
-       }
-}
-
 static struct istream *client_get_input(struct client *client)
 {
        struct client_state *state = &client->state;
index 97462e2912c0aad7f120ea354cdd949d7134a8d8..2d5156989f34b3df5b4553c74ff1fda870b1dc0f 100644 (file)
@@ -50,6 +50,16 @@ client_send_line_overquota(struct client *client,
                smtp_address_encode(rcpt->address), error);
 }
 
+void client_rcpt_fail_all(struct client *client)
+{
+       struct mail_recipient *const *rcptp;
+
+       array_foreach(&client->state.rcpt_to, rcptp) {
+               client_send_line(client, ERRSTR_TEMP_MAILBOX_FAIL,
+                                smtp_address_encode((*rcptp)->address));
+       }
+}
+
 static int
 lmtp_rcpt_to_is_over_quota(struct client *client,
                           const struct mail_recipient *rcpt)
index b4752497db11f2c00d66209d3bb8e6a370eadc75..245d55f19f3c569071376cb4720a816470cd7b8a 100644 (file)
@@ -7,6 +7,8 @@ struct mail_deliver_session;
 
 void client_rcpt_anvil_disconnect(const struct mail_recipient *rcpt);
 
+void client_rcpt_fail_all(struct client *client);
+
 bool cmd_rcpt_finish(struct client *client, struct mail_recipient *rcpt);
 
 void rcpt_anvil_lookup_callback(const char *reply, void *context);