]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: Move client_proxy_input_pre/post() to submission-backend-relay.c.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 2 Sep 2018 14:05:28 +0000 (16:05 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 9 Oct 2018 06:41:17 +0000 (06:41 +0000)
src/submission/submission-backend-relay.c
src/submission/submission-backend-relay.h
src/submission/submission-client.c

index bb6232a924572ee81b8f5e668fd8c95527bb97ef..eec0a3d736d57867ecba72872eb7218f3d813847 100644 (file)
@@ -778,3 +778,15 @@ void client_proxy_start(struct client *client)
        smtp_client_connection_connect(client->proxy_conn,
                client_proxy_ready_cb, client);
 }
+
+/* try to proxy pipelined commands in a similarly pipelined fashion */
+void client_proxy_input_pre(struct client *client)
+{
+       if (client->proxy_conn != NULL)
+               smtp_client_connection_cork(client->proxy_conn);
+}
+void client_proxy_input_post(struct client *client)
+{
+       if (client->proxy_conn != NULL)
+               smtp_client_connection_uncork(client->proxy_conn);
+}
index f432d9eace7ba646b38bbc928f62371dcc1ec7eb..65d07ff566ca0e156329f5eb77aa669770b7e6dc 100644 (file)
@@ -23,4 +23,7 @@ void client_proxy_create(struct client *client,
 void client_proxy_destroy(struct client *client);
 void client_proxy_start(struct client *client);
 
+void client_proxy_input_pre(struct client *client);
+void client_proxy_input_post(struct client *client);
+
 #endif
index 4aac1ceba206dd1f7fccf2f6f865d345c33dfce0..7087f6cace69a74ce39d1e539eb9cc55a0a88138 100644 (file)
@@ -46,18 +46,6 @@ unsigned int submission_client_count;
 
 static const struct smtp_server_callbacks smtp_callbacks;
 
-/* try to proxy pipelined commands in a similarly pipelined fashion */
-static void client_proxy_input_pre(struct client *client)
-{
-       if (client->proxy_conn != NULL)
-               smtp_client_connection_cork(client->proxy_conn);
-}
-static void client_proxy_input_post(struct client *client)
-{
-       if (client->proxy_conn != NULL)
-               smtp_client_connection_uncork(client->proxy_conn);
-}
-
 static void client_input_pre(void *context)
 {
        struct client *client = context;