[exim-cvs] src/transports/smtp.c: log LMTP confirmation same…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] src/transports/smtp.c: log LMTP confirmation same as SMTP
Gitweb: http://git.exim.org/exim.git/commitdiff/c0ea85abed9a15203691b049dd76104360fc0dc6
Commit:     c0ea85abed9a15203691b049dd76104360fc0dc6
Parent:     8c07b69f0292fa7dbfbd2409b389ae1e4ab5e222
Author:     Tony Finch <dot@???>
AuthorDate: Fri Jan 14 14:16:53 2011 +0000
Committer:  Tony Finch <dot@???>
CommitDate: Fri Jan 14 14:16:53 2011 +0000


    src/transports/smtp.c: log LMTP confirmation same as SMTP
---
 doc/doc-txt/ChangeLog     |    3 +++
 src/src/transports/smtp.c |    6 +++++-
 2 files changed, 8 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 0be0142..d19f308 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -9,6 +9,9 @@ Exim version 4.74
 TF/01 Failure to get a lock on a hints database can have serious
       consequences so log it to the panic log.


+TF/02 Log LMTP confirmation messages in the same way as SMTP,
+      controlled using the smtp_confirmation log selector.
+


 Exim version 4.73
 -----------------
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index fb55ae0..e06631f 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