On 17/09/15 04:07, Always Learning wrote:
> exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html
>
>
>> ${listextract{-3}{<, x,42,99,& Mailer,,/bin/bash}{result: $value}}
>>
>> yields “result: 99”.
>
> If the right-most data in a punctuated field is labelled -1, then
> shouldn't the -3 yield '& Mailer' ?I get 42, not 99. You found a docs bug. But your "-1"th field runs from the "&" onwards, because of the rules on doubled list separators. You'll be better off with extract, for this job. -- 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/
