On 2016-06-01, Sven Eschenberg <sven@???> wrote: > Hi list,
>
> Maybe I got something fundamentally wrong regarding expansions, but I am
> seeing a behavior I consider a little inconsistent.
>
> exim -oMi 127.0.0.1 -be '${extract{$received_ip_address}{10.0.0.1=hosta
> 127.0.0.1=local4 ::1=local6}{$value}fail}'
> local4
>
> (expected)
>
> exim -oMi 127.0.0.2 -be '${extract{$received_ip_address}{10.0.0.1=hosta
> 127.0.0.1=local4 ::1=local6}{$value}fail}'
> Failed: "extract" failed and "fail" requested
>
> (expected)
>
> exim -be '${extract{$received_ip_address}{10.0.0.1=hosta
> 127.0.0.1=local4 ::1=local6}{$value}fail}'
> Failed: first argument of "extract" must not be empty
>
> That was somewhat expected, the docs say the key must not consist of all
> digits. There's no hint on what happens if the key is empty.
{} contains nothing but digits
{} contains no digits