Cutthrough: Fix bug with dot-only line
[exim.git] / test / scripts / 5400-cutthrough / 5400
index 2d851a60d06cea26b3ece8c708c24a5f263548df..109b43928a4d9daa455c35f0010f2dbfc921f15b 100644 (file)
@@ -149,7 +149,10 @@ DATA
 QUIT
 250 OK
 ****
-exim -bs
+#
+# Foregound delivery needed else the following subtest reception logging happens before this ones
+# delivery process logs and terminates; the interlock is only on the parent exim terminating.
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
 RCPT TO:<no@domain.com>
@@ -163,7 +166,6 @@ QUIT
 #
 #
 #
-#
 # cutthrough for 2 recipients in one domain
 # second one denied
 # so we get a 2nd conn with the traditional delivery
@@ -197,7 +199,7 @@ DATA
 QUIT
 250 OK
 ****
-exim -bs
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
 RCPT TO:<userx@domain.com>
@@ -265,7 +267,7 @@ DATA
 QUIT
 250 OK
 ****
-exim -bs
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
 RCPT TO:<userx@domain.com>
@@ -365,7 +367,7 @@ DATA
 QUIT
 250 OK
 ****
-exim -bs
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
 RCPT TO:<userx@domain.com>
@@ -399,7 +401,7 @@ DATA
 QUIT
 250 OK
 ****
-exim -bs
+exim -bs -odf
 EHLO myhost.test.ex
 MAIL FROM:<CALLER@myhost.test.ex>
 RCPT TO:<userx@localhost4.test.ex>
@@ -412,6 +414,39 @@ QUIT
 #
 #
 #
+# data having line with (logical, doubled on wire) single dot
+server PORT_S
+220 ESMTP
+EHLO
+250 OK
+MAIL FROM:
+250 Sender OK
+RCPT TO:
+250 Recipient OK
+DATA
+354 Send data
+.
+250 OK
+QUIT
+250 OK
+****
+exim -bs -odf
+EHLO myhost.test.ex
+MAIL FROM:<CALLER@myhost.test.ex>
+RCPT TO:<userx@domain.com>
+DATA
+Subject: singledot test
+
+This data has a line with a single dot... next:
+..
+and this is the line right after.
+Next we have a line with a leading dot:
+..test
+and this is the next line.
+
+.
+QUIT
+****
 #
 #
-sleep 1
+# End