[exim] if expansion item inside run item not giving expected…

Top Pagina
Delete this message
Reply to this message
Auteur: Dominic Preston
Datum:  
Aan: exim-users
Onderwerp: [exim] if expansion item inside run item not giving expected result
As I am having an error condition with ${if} items inside ${run} items
I made a simple example:

  warn
    log_message = Sender is ${run{/usr/bin/echo ${if
def:sender_address {$sender_address}}}}


This produces the result:

2024-06-05 11:35:31 failed to expand ACL message "Sender is
${run{/usr/bin/echo ${if def:sender_address {$sender_address}}}}":
Expansion of "${if" from command "/usr/bin/echo ${if
def:sender_address {$sender_address}}" in ${run} expansion failed:
condition name expected, but found ""

Are ${if} items permitted inside ${run} items?

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