Skip to content

Commit

Permalink
lmtp: Replace i_info() with e_info().
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch committed Mar 12, 2019
1 parent 5ee46c6 commit b5f6176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lmtp/lmtp-client.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/lmtp/lmtp-proxy.c
Expand Up @@ -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",
Expand All @@ -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));
}
Expand Down

0 comments on commit b5f6176

Please sign in to comment.