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

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Bugzilla
Data:  
Para: exim-dev
Asunto: [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/