From 9eed571fd7c3236326cc6ea74f1455b027df7604 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 14 Jun 2020 20:43:06 +0100 Subject: Taint: fix verify. Bug 2598 --- test/scripts/0000-Basic/0087 | 2 +- test/scripts/0000-Basic/0591 | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 test/scripts/0000-Basic/0591 (limited to 'test/scripts/0000-Basic') diff --git a/test/scripts/0000-Basic/0087 b/test/scripts/0000-Basic/0087 index c77b69cc4..8e65e8006 100644 --- a/test/scripts/0000-Basic/0087 +++ b/test/scripts/0000-Basic/0087 @@ -1,4 +1,4 @@ -# verify = header_sender +# verify = header_sender & sender exim -bh V4NET.10.10.10 mail from: rcpt to: diff --git a/test/scripts/0000-Basic/0591 b/test/scripts/0000-Basic/0591 new file mode 100644 index 000000000..c7f543d36 --- /dev/null +++ b/test/scripts/0000-Basic/0591 @@ -0,0 +1,29 @@ +# verify = sender=address +# +# pass +exim -DOPT=userx@test.ex -bh 127.0.0.1 +mail from: +rcpt to: +data +From: userx@test.ex +Subject: testing +. +QUIT +**** +# fail +exim -DOPT=fail@test.ex -bh 127.0.0.1 +mail from: +rcpt to: +QUIT +**** +# check can use tainted data +exim -DOPT='$sender_address/defer_ok' -bh 127.0.0.1 +mail from: +rcpt to: +data +From: userx@test.ex +Subject: testing +. +QUIT +**** +no_msglog_check -- cgit v1.2.3