]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: proxy: Moved lmtp_proxy_rcpt_cb().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 23 Nov 2016 09:58:02 +0000 (10:58 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 7 Dec 2017 23:08:15 +0000 (00:08 +0100)
src/lmtp/lmtp-proxy.c

index ba3019131191d3d4dbd78c9cc06f8d7d12616965..ab1a2b805a9c37a920276f0b9eac958c1e3eb406 100644 (file)
@@ -299,22 +299,6 @@ lmtp_proxy_write_reply(string_t *reply, const struct smtp_reply *proxy_reply)
        }
 }
 
-static void
-lmtp_proxy_rcpt_cb(const struct smtp_reply *proxy_reply,
-                  struct lmtp_proxy_recipient *rcpt)
-{
-       struct lmtp_proxy_connection *conn = rcpt->conn;
-       string_t *reply;
-
-       i_assert(rcpt->reply == NULL);
-
-       reply = t_str_new(128);
-       lmtp_proxy_write_reply(reply, proxy_reply);
-
-       rcpt->reply = p_strdup(conn->proxy->pool, str_c(reply));
-       rcpt->rcpt_to_failed = !smtp_reply_is_success(proxy_reply);
-}
-
 static bool
 client_proxy_rcpt_parse_fields(struct lmtp_proxy_rcpt_settings *set,
                               const char *const *args, const char **address)
@@ -401,6 +385,22 @@ client_proxy_is_ourself(const struct client *client,
        return TRUE;
 }
 
+static void
+lmtp_proxy_rcpt_cb(const struct smtp_reply *proxy_reply,
+                  struct lmtp_proxy_recipient *rcpt)
+{
+       struct lmtp_proxy_connection *conn = rcpt->conn;
+       string_t *reply;
+
+       i_assert(rcpt->reply == NULL);
+
+       reply = t_str_new(128);
+       lmtp_proxy_write_reply(reply, proxy_reply);
+
+       rcpt->reply = p_strdup(conn->proxy->pool, str_c(reply));
+       rcpt->rcpt_to_failed = !smtp_reply_is_success(proxy_reply);
+}
+
 int lmtp_proxy_add_rcpt(struct lmtp_proxy *proxy,
                        const struct smtp_address *address,
                        const struct lmtp_proxy_rcpt_settings *set)