From c5040dfdb523ce2a14efbdfa0d3eb69d3afef65a Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 19 Oct 2019 22:25:27 +0100 Subject: CHUNKING: fix all-RCPTs-rejected, non-pipelined. Bug 2454 --- src/src/transports/smtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index fe28d8606..bf8191568 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -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; -- cgit v1.2.3