On 22/09/2022 13:48, Jeremy Harris via Exim-users wrote:
We could code to stack $value during each evaluation of the condition
for the reduce. That feels better. I'll have a go.
Turn out that's not sufficient. The issue is not that
the inlisti-output $value mucks up reduce, but that it hides
the reduce's $value from the yes/no evaluations of the ${if.
[ There's actually a worse bug floating around here. I managed to
trip an internal check on memory use, trying to invent an alternate
using filter & listcount. ]
a3d3e7ef81 (just pushed) fixes this.
Given the fix, does
${listcount:${filter {a:p:p:l:e} {inlisti{$item}{ p:e:z }}}}
look plausible?
--
Cheers,
Jeremy
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/