Add optional authenticated_sender info to A= elements of log lines; bug 1314.
[exim.git] / src / src / transports / smtp.c
index 0ab1732321a18ade9dbfb842bb45c2c5f4c7b48e..b4ef7cf4d77c72af3ea5a8f742430e99cab9c09b 100644 (file)
@@ -1499,7 +1499,10 @@ if ((smtp_authenticated || ob->authenticated_sender_force) &&
   string_format(p, sizeof(buffer) - (p-buffer), " AUTH=%s",
     auth_xtextencode(local_authenticated_sender,
     Ustrlen(local_authenticated_sender)));
+  client_authenticated_sender = string_copy(local_authenticated_sender);
   }
+else
+  client_authenticated_sender = NULL;
 
 /* From here until we send the DATA command, we can make use of PIPELINING
 if the server host supports it. The code has to be able to check the responses