]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: Move client_proxy_get_max_mail_size() to submission-backend-relay.c.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 2 Sep 2018 15:10:19 +0000 (17:10 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:40:41 +0000 (15:40 +0200)
src/submission/submission-backend-relay.c
src/submission/submission-backend-relay.h
src/submission/submission-client.c

index eec0a3d736d57867ecba72872eb7218f3d813847..4ac1b45d58337df526cb614571b731ce1fb0151d 100644 (file)
@@ -790,3 +790,8 @@ void client_proxy_input_post(struct client *client)
        if (client->proxy_conn != NULL)
                smtp_client_connection_uncork(client->proxy_conn);
 }
+
+uoff_t client_proxy_get_max_mail_size(struct client *client)
+{
+       return smtp_client_connection_get_size_capability(client->proxy_conn);
+}
index 65d07ff566ca0e156329f5eb77aa669770b7e6dc..dc4672549966f2dcb5bd19893b9c1ba0b9ff357d 100644 (file)
@@ -26,4 +26,6 @@ void client_proxy_start(struct client *client);
 void client_proxy_input_pre(struct client *client);
 void client_proxy_input_post(struct client *client);
 
+uoff_t client_proxy_get_max_mail_size(struct client *client);
+
 #endif
index 7087f6cace69a74ce39d1e539eb9cc55a0a88138..faef8bf4f25ed63bac862a44c9bd36a91eb24e9f 100644 (file)
@@ -19,8 +19,6 @@
 #include "mail-storage-service.h"
 #include "raw-storage.h"
 #include "imap-urlauth.h"
-#include "smtp-client.h"
-#include "smtp-client-connection.h"
 
 #include "submission-backend-relay.h"
 #include "submission-commands.h"
@@ -325,12 +323,6 @@ void client_disconnect(struct client *client, const char *enh_code,
        }
 }
 
-static uoff_t
-client_proxy_get_max_mail_size(struct client *client)
-{
-       return smtp_client_connection_get_size_capability(client->proxy_conn);
-}
-
 uoff_t client_get_max_mail_size(struct client *client)
 {
        uoff_t max_size;