[exim-dev] [Bug 3024] string expansion error in function red…

Top Page
Delete this message
Reply to this message
Author: Exim Bugzilla
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 3024] string expansion error in function reduce combined with inlisti function
https://bugs.exim.org/show_bug.cgi?id=3024

Jeremy Harris <jgh146exb@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.exim.org/show_
                   |                            |bug.cgi?id=2363


--- Comment #2 from Jeremy Harris <jgh146exb@???> ---
Possibilities:
- a 'ret=no' option, here applied to the inlisti, meaning that $value
should not be overwritten
- variables assignable within an expansion, maybe (bug 2363)



In the meantime, a workable replacement is

(ACL)

# arg1: item   arg2: list-so-far
if_inlisti:
  accept        message =       ${acl_arg2}${if inlisti{$acl_arg1}{<\n
$acl_arg2} {}{${acl_arg1}\n}}




(expansion)

    ${reduce {<\n 3\n4\n4\n}{}{${acl {if_inlisti}{$item}{$value}}}


--
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@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/