]> 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 15:00:43 +0000 (16:00 +0100)
Instead of transaction ID, which is shared between recipients.

src/lmtp/lmtp-proxy.c

index 3be042596dfe7a68034c65bfe81d948feee80ba9..186a62e2fe38b75c741a03f172ac22ef216122de 100644 (file)
@@ -747,7 +747,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