CHUNKING: fix all-RCPTs-rejected, non-pipelined. Bug 2454
[exim.git] / src / src / transports / smtp.c
index fe28d860660fcf7affb2b239d5e80e82ce05f223..bf8191568f3c89fa8449bf06fcf18d3d70aed68e 100644 (file)
@@ -3642,7 +3642,8 @@ for handling the SMTP dot-handling protocol, flagging to apply to headers as
 well as body. Set the appropriate timeout value to be used for each chunk.
 (Haven't been able to make it work using select() for writing yet.) */
 
-if (!(sx.peer_offered & OPTION_CHUNKING) && !sx.ok)
+if (  !sx.ok
+   && (!(sx.peer_offered & OPTION_CHUNKING) || !pipelining_active))
   {
   /* Save the first address of the next batch. */
   sx.first_addr = sx.next_addr;