}
/* try to proxy pipelined commands in a similarly pipelined fashion */
-void client_proxy_input_pre(struct client *client)
+static void
+backend_relay_client_input_pre(struct submission_backend *_backend)
{
- struct submission_backend_relay *backend = &client->backend;
+ struct submission_backend_relay *backend =
+ (struct submission_backend_relay *)_backend;
if (backend->conn != NULL)
smtp_client_connection_cork(backend->conn);
}
-void client_proxy_input_post(struct client *client)
+static void
+backend_relay_client_input_post(struct submission_backend *_backend)
{
- struct submission_backend_relay *backend = &client->backend;
+ struct submission_backend_relay *backend =
+ (struct submission_backend_relay *)_backend;
if (backend->conn != NULL)
smtp_client_connection_uncork(backend->conn);
.start = backend_relay_start,
+ .client_input_pre = backend_relay_client_input_pre,
+ .client_input_post = backend_relay_client_input_post,
+
.cmd_helo = backend_relay_cmd_helo,
.cmd_mail = backend_relay_cmd_mail,
void client_proxy_create(struct client *client,
const struct submission_settings *set);
-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
{
struct client *client = context;
- client_proxy_input_pre(client);
submission_backends_client_input_pre(client);
}
static void client_input_post(void *context)
{
struct client *client = context;
- client_proxy_input_post(client);
submission_backends_client_input_post(client);
}