]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Replace i_info() with e_info().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 13 Feb 2019 23:21:16 +0000 (00:21 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 12 Mar 2019 22:04:51 +0000 (23:04 +0100)
src/lmtp/lmtp-client.c
src/lmtp/lmtp-proxy.c

index a52a25c785dae8e3ea50fe27b4bd991a2b5bc96d..3f13ff00d71d069ac8ae4dec006c25953975f3fd 100644 (file)
@@ -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);
index 6392667ebeccbc9d95746307bd68a65f4252e014..460cf5c8309907bfe9d57d0d6423ba3963020d74 100644 (file)
@@ -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));
                }