X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/72c9e342b1a4a410efc165a38281da2f5b69ad90..76f44207fdf9cc3360a131a2297e6fa33080e323:/src/src/transports/lmtp.c diff --git a/src/src/transports/lmtp.c b/src/src/transports/lmtp.c index 06eb72969..7a1e7c471 100644 --- a/src/src/transports/lmtp.c +++ b/src/src/transports/lmtp.c @@ -662,8 +662,14 @@ if (send_data) if (addr->transport_return != PENDING_OK) continue; if (lmtp_read_response(out, buffer, sizeof(buffer), '2', timeout)) + { addr->transport_return = OK; - + if ((log_extra_selector & LX_smtp_confirmation) != 0) + { + uschar *s = string_printing(buffer); + addr->message = (s == buffer)? (uschar *)string_copy(s) : s; + } + } /* If the response has failed badly, use it for all the remaining pending addresses and give up. */