summaryrefslogtreecommitdiff
path: root/test/scripts/0000-Basic/0588
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-05-12 23:10:08 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2020-05-13 12:11:02 +0100
commit0de9945258c2e7910c35f715caf07c5e9270aa1b (patch)
tree73b3a89d44569ab1352739d49864086989c89eee /test/scripts/0000-Basic/0588
parent64dfd5e0cec10edded40f4669a706e6564aa8e07 (diff)
smtp transport: message_linelength_limit option. Bug 1684
Diffstat (limited to 'test/scripts/0000-Basic/0588')
-rw-r--r--test/scripts/0000-Basic/058845
1 files changed, 45 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0588 b/test/scripts/0000-Basic/0588
new file mode 100644
index 000000000..44328a70c
--- /dev/null
+++ b/test/scripts/0000-Basic/0588
@@ -0,0 +1,45 @@
+# message_linelength_limit
+#
+# The "write" script cmd subtracts 1 for the newline,
+# and the linecount in exim doesn't count the line-ending.
+write test-data-good 1x999
+++++
+****
+write test-data-bad 1x1000
+++++
+****
+#
+exim -bd -DSERVER=server -oX PORT_D
+****
+client 127.0.0.1 PORT_D
+??? 220
+HELO test
+??? 250
+MAIL FROM:<CALLER@test.ex>
+??? 250
+RCPT TO:<good@test.ex>
+??? 250
+DATA
+??? 354
+Subject: should be good
+
+<<< test-data-good
+.
+??? 250
+MAIL FROM:<CALLER@test.ex>
+??? 250
+RCPT TO:<bad@test.ex>
+??? 250
+DATA
+??? 354
+Subject: should be bad
+
+<<< test-data-bad
+.
+??? 250
+QUIT
+??? 221
+****
+#
+sleep 1
+killdaemon