diff --git a/src/lmtp/commands.c b/src/lmtp/commands.c index 686467930f..7421dbb40b 100644 --- a/src/lmtp/commands.c +++ b/src/lmtp/commands.c @@ -482,7 +482,7 @@ static void client_input_data_write(struct client *client) input = client_get_input(client); if (array_count(&client->state.rcpt_to) != 0) - client_input_data_write_local(client, input); + lmtp_local_data(client, input); if (client->proxy != NULL) { client_state_set(client, "DATA", "proxying"); lmtp_proxy_start(client->proxy, input, diff --git a/src/lmtp/lmtp-local.c b/src/lmtp/lmtp-local.c index 213ce72ec7..e10f9055dc 100644 --- a/src/lmtp/lmtp-local.c +++ b/src/lmtp/lmtp-local.c @@ -425,7 +425,7 @@ lmtp_local_open_raw_mail(struct client *client, return 0; } -void client_input_data_write_local(struct client *client, struct istream *input) +void lmtp_local_data(struct client *client, struct istream *input) { struct mail_deliver_session *session; uid_t old_uid, first_uid; diff --git a/src/lmtp/lmtp-local.h b/src/lmtp/lmtp-local.h index a36b459b6f..2899cbecd8 100644 --- a/src/lmtp/lmtp-local.h +++ b/src/lmtp/lmtp-local.h @@ -11,6 +11,6 @@ bool cmd_rcpt_finish(struct client *client, struct lmtp_recipient *rcpt); void rcpt_anvil_lookup_callback(const char *reply, void *context); -void client_input_data_write_local(struct client *client, struct istream *input); +void lmtp_local_data(struct client *client, struct istream *input); #endif