From b5f6176282c4ec4ebbf94e3f5f4aaafc05a218ca Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Thu, 14 Feb 2019 00:21:16 +0100 Subject: [PATCH] lmtp: Replace i_info() with e_info(). --- src/lmtp/lmtp-client.c | 6 +++--- src/lmtp/lmtp-proxy.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lmtp/lmtp-client.c b/src/lmtp/lmtp-client.c index a52a25c785..3f13ff00d7 100644 --- a/src/lmtp/lmtp-client.c +++ b/src/lmtp/lmtp-client.c @@ -193,7 +193,7 @@ struct client *client_create(int fd_in, int fd_out, DLLIST_PREPEND(&clients, client); clients_count++; - i_info("Connect from %s", client_remote_id(client)); + e_info(client->event, "Connect from %s", client_remote_id(client)); if (hook_client_created != NULL) hook_client_created(&client); @@ -269,8 +269,8 @@ void client_disconnect(struct client *client, const char *enh_code, if (reason == NULL) reason = "Connection closed"; - i_info("Disconnect from %s: %s (state=%s)", client_remote_id(client), - reason, client_state_get_name(client)); + e_info(client->event, "Disconnect from %s: %s (state=%s)", + client_remote_id(client), reason, client_state_get_name(client)); if (conn != NULL) { client->last_state = smtp_server_connection_get_state(conn); diff --git a/src/lmtp/lmtp-proxy.c b/src/lmtp/lmtp-proxy.c index 6392667ebe..460cf5c830 100644 --- a/src/lmtp/lmtp-proxy.c +++ b/src/lmtp/lmtp-proxy.c @@ -634,7 +634,7 @@ lmtp_proxy_data_cb(const struct smtp_reply *proxy_reply, /* handle reply */ if (smtp_reply_is_success(proxy_reply)) { /* if backend accepts it, we accept it too */ - i_info("%s", str_c(msg)); + e_info(rcpt->event, "%s", str_c(msg)); /* substitute our own success message */ smtp_reply_printf(&reply, 250, "<%s> %s Saved", @@ -650,7 +650,7 @@ lmtp_proxy_data_cb(const struct smtp_reply *proxy_reply, /* The problem isn't with the proxy, it's with the remote side. so the remote side will log an error, while for us this is just an info event */ - i_info("%s", str_c(msg)); + e_info(rcpt->event, "%s", str_c(msg)); } else { e_error(rcpt->event, "%s", str_c(msg)); } -- 2.47.3