From 58fc5fb2eec65bc0b1c7f5e571e3c534cf008b88 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 7 Aug 2016 15:14:59 +0100 Subject: CHUNKING: fix transmit with long headers When the buffer used for SMTP commands and message headers filled to flush point, protocol sequencing was wrong. --- test/stderr/0143 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/stderr/0143') diff --git a/test/stderr/0143 b/test/stderr/0143 index e0fe9dc93..06370ba40 100644 --- a/test/stderr/0143 +++ b/test/stderr/0143 @@ -20,16 +20,20 @@ delivering 10HmaX-0005vi-00 to 127.0.0.1 [127.0.0.1] (userx@domain.com) Connecting to 127.0.0.1 [127.0.0.1]:1224 from ip4.ip4.ip4.ip4 ... connected SMTP<< 220 ESMTP SMTP>> EHLO myhost.test.ex +cmd buf flush 21 bytes SMTP<< 250-OK 250-HELP 250 AUTH LOGIN not using PIPELINING not using DSN SMTP>> MAIL FROM: +cmd buf flush 37 bytes SMTP<< 250 Sender OK SMTP>> RCPT TO: +cmd buf flush 28 bytes SMTP<< 250 Recipient OK SMTP>> DATA +cmd buf flush 6 bytes SMTP<< 354 Send data SMTP>> writing message and terminating "." writing data block fd=dddd size=sss timeout=300 @@ -39,6 +43,7 @@ transport_check_waiting entered sequence=1 local_max=500 global_max=-1 no messages waiting for 127.0.0.1 SMTP>> QUIT +cmd buf flush 6 bytes SMTP(close)>> Leaving my_smtp transport LOG: MAIN -- cgit v1.2.3