From d7a2c8337f7b615763d4429ab27653862756b6fb Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 24 Jan 2017 18:17:10 +0000 Subject: Fix reception of (quoted) local-parts with embedded spaces. Bug 2025 --- test/confs/0579 | 31 +++++++++++++++++++++++++++++++ test/scripts/0000-Basic/0579 | 28 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 test/confs/0579 create mode 100644 test/scripts/0000-Basic/0579 (limited to 'test') diff --git a/test/confs/0579 b/test/confs/0579 new file mode 100644 index 000000000..5e61752ab --- /dev/null +++ b/test/confs/0579 @@ -0,0 +1,31 @@ +# Exim test configuration 0579 + +.include DIR/aux-var/std_conf_prefix + +primary_hostname = myhost.test.ex + +# ----- Main settings ----- + +domainlist local_domains = test.ex +log_selector = +received_recipients + +acl_smtp_rcpt = accept logwrite=cmd '$smtp_command' + +# ------ ACLs ------ + +begin acl + +# ------ Routers ------ + +begin routers + +r1: + driver = redirect + data = :blackhole: + + +# ------ Transports ------ + +begin transports + +# End diff --git a/test/scripts/0000-Basic/0579 b/test/scripts/0000-Basic/0579 new file mode 100644 index 000000000..7a5f3ff6f --- /dev/null +++ b/test/scripts/0000-Basic/0579 @@ -0,0 +1,28 @@ +# local-part with space, esmtp reception +# +exim -DSERVER=server -bd -oX PORT_D +**** +# +client 127.0.0.1 PORT_D +??? 220 +EHLO test +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 HELP +MAIL FROM:<> +??? 250 +RCPT TO:<"name with spaces"@test.ex> +??? 250 +DATA +??? 354 +Subject: test + +body +. +??? 250 +QUIT +??? 221 +**** +killdaemon -- cgit v1.2.3