summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-08-24 15:51:21 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2023-08-24 16:06:39 +0100
commit21b172df101c2c52faf0cc56a502395451975be9 (patch)
tree9bcf183b676579a9bcfb2443720bb049c664500b /test
parentc18090c685f592d2ae944c2d24926394937c15c2 (diff)
Re-fix live variable $value free. The inital fix resulted in $value from ${run...} not
being available later, which is a documented feature. Broken=by: cf3fecb9e873
Diffstat (limited to 'test')
-rw-r--r--test/confs/06351
-rw-r--r--test/log/06351
-rw-r--r--test/mail/0635.CALLER13
3 files changed, 15 insertions, 0 deletions
diff --git a/test/confs/0635 b/test/confs/0635
index 2b6a726d1..4aec94e13 100644
--- a/test/confs/0635
+++ b/test/confs/0635
@@ -19,6 +19,7 @@ begin acl
check_data:
accept logwrite = \$recipients: "$recipients"
logwrite = run-wrapped \$recipients: "${run{/bin/echo $recipients}}"
+ logwrite = \$value after \${run...}: '$value'
# ----- Routers -----
diff --git a/test/log/0635 b/test/log/0635
index 5126c2c63..889cfa651 100644
--- a/test/log/0635
+++ b/test/log/0635
@@ -1,5 +1,6 @@
1999-03-02 09:44:33 10HmaX-000000005vi-0000 $recipients: "CALLER@the.local.host.name"
1999-03-02 09:44:33 10HmaX-000000005vi-0000 run-wrapped $recipients: "CALLER@the.local.host.name\n"
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 $value after ${run...}: 'CALLER@the.local.host.name\n'
1999-03-02 09:44:33 10HmaX-000000005vi-0000 <= someone@some.domain U=CALLER P=local-smtp S=sss
1999-03-02 09:44:33 10HmaX-000000005vi-0000 => CALLER <CALLER@the.local.host.name> R=localuser T=local_delivery
1999-03-02 09:44:33 10HmaX-000000005vi-0000 Completed
diff --git a/test/mail/0635.CALLER b/test/mail/0635.CALLER
new file mode 100644
index 000000000..25b61aadd
--- /dev/null
+++ b/test/mail/0635.CALLER
@@ -0,0 +1,13 @@
+From someone@some.domain Tue Mar 02 09:44:33 1999
+Received: from CALLER (helo=test)
+ by the.local.host.name with local-smtp (Exim x.yz)
+ (envelope-from <someone@some.domain>)
+ id 10HmaX-000000005vi-0000
+ for CALLER@the.local.host.name;
+ Tue, 2 Mar 1999 09:44:33 +0000
+Message-Id: <E10HmaX-000000005vi-0000@the.local.host.name>
+From: someone@some.domain
+Date: Tue, 2 Mar 1999 09:44:33 +0000
+
+This is a test message.
+