From 21b172df101c2c52faf0cc56a502395451975be9 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 24 Aug 2023 15:51:21 +0100 Subject: 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 --- test/confs/0635 | 1 + test/log/0635 | 1 + test/mail/0635.CALLER | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 test/mail/0635.CALLER (limited to 'test') 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 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 ) + id 10HmaX-000000005vi-0000 + for CALLER@the.local.host.name; + Tue, 2 Mar 1999 09:44:33 +0000 +Message-Id: +From: someone@some.domain +Date: Tue, 2 Mar 1999 09:44:33 +0000 + +This is a test message. + -- cgit v1.2.3