]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: proxy - Use recipient-specific session-id when logging the result
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 1 Feb 2022 14:03:15 +0000 (15:03 +0100)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 1 Feb 2022 14:57:14 +0000 (15:57 +0100)
Instead of transaction ID, which is shared between recipients.

src/lmtp/lmtp-proxy.c

index 0679dc398c5e7589a241877d7fbbcb115cd8d3e6..fcb8fe964ee5cc8af704b132a69f2363b4eff0a6 100644 (file)
@@ -1020,7 +1020,7 @@ lmtp_proxy_data_cb(const struct smtp_reply *proxy_reply,
 
        /* Compose log message */
        msg = t_str_new(128);
-       str_printfa(msg, "%s: ", trans->id);
+       str_printfa(msg, "%s: ", lrcpt->session_id);
        if (smtp_reply_is_success(proxy_reply))
                str_append(msg, "Sent message to");
        else