Log queue_time and queue_time_overall exclusive of receive time. Bug 2672
[exim.git] / src / src / deliver.c
index ef6eb22e2037cd19a8510ece30c6206d83d84e98..0cddec7584a38cf6c635d0fa23b87ed06f9c5bc5 100644 (file)
@@ -1269,8 +1269,8 @@ if (  LOGGING(smtp_confirmation)
 /* Time on queue and actual time taken to deliver */
 
 if (LOGGING(queue_time))
-  g = string_append(g, 2, US" QT=",
-    string_timesince(&received_time));
+  g = string_append(g, 2, US" QT=", string_timesince(
+    LOGGING(queue_time_exclusive) ? &received_time_complete : &received_time));
 
 if (LOGGING(deliver_time))
   g = string_append(g, 2, US" DT=", string_timediff(&addr->delivery_time));