Mailing List Archive

[Bug 3013] New: ${run{/bin/echo $recipients}} doesn't expand the $recipients
https://bugs.exim.org/show_bug.cgi?id=3013

Bug ID: 3013
Summary: ${run{/bin/echo $recipients}} doesn't expand the
$recipients
Product: Exim
Version: 4.96
Hardware: x86
OS: Linux
Status: NEW
Severity: bug
Priority: medium
Component: String expansion
Assignee: unallocated@exim.org
Reporter: hs@schlittermann.de
CC: exim-dev@lists.exim.org

It worked before commit cfe6acff2:

?considering: ${run{/bin/echo $recipients}}
?considering: /bin/echo $recipients}}
????????text: /bin/echo
?considering: $recipients}}
?considering: }}
???expanding: /bin/echo $recipients
??????result: /bin/echo hans@example.com
???(tainted)

after:
?considering: $recipients
???expanding: $recipients
??????result:
direct command after expansion:
argv[0] = '/bin/echo'
argv[1] = ''

The command in question was

exim -t -bem /tmp/test.eml '${run{/bin/echo $recipients}}'

----[/tmp/test.eml]
To: hans@example.com
Subject: test

hallo
----

--
You are receiving this mail because:
You are on the CC list for the bug.

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-dev-unsubscribe@lists.exim.org
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/