X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/8c07b69f0292fa7dbfbd2409b389ae1e4ab5e222..c0ea85abed9a15203691b049dd76104360fc0dc6:/src/src/transports/smtp.c diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index fb55ae01b..e06631f2f 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -1715,7 +1715,11 @@ if (!ok) ok = TRUE; else continue; } completed_address = TRUE; /* NOW we can set this flag */ - conf = string_sprintf("LMTP Successful delivery:%s", string_printing(buffer)); + if ((log_extra_selector & LX_smtp_confirmation) != 0) + { + uschar *s = string_printing(buffer); + conf = (s == buffer)? (uschar *)string_copy(s) : s; + } } /* SMTP, or success return from LMTP for this address. Pass back the