BugZilla 1006 - recommit patch from Micha Lenk
[exim.git] / src / src / transports / smtp.c
index 41796a4d9d5d9d869a23748ea81afc189ac416cd..548fbfc0e50139b4ccaae18249f68fbf2fdb63ae 100644 (file)
@@ -1717,7 +1717,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