Mailing List Archive

sometimes we need a space following a variable?
Hi

I've had a lot of trouble with string expansion things, esp ${sg...}

e.g. this fails:  ${sg{$h_from}{me}{you}} while this doesn't e.g. this
fails:  ${sg{$h_from }{me}{you}}

- note space after $h_from.

Why is this? Have I misunderstood something?

Thanks,

Rich

--
## 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/
Re: sometimes we need a space following a variable? [ In reply to ]
On 07/30/2018 12:19 PM, Rich Lott - Artful Robot via Exim-users wrote:
> - note space after $h_from.
>
> Why is this? Have I misunderstood something?

The docs say:


$header_<name>

This is not strictly an expansion variable. It is expansion syntax
for inserting the message header line with the given name. Note that the
name must be terminated by colon or white space, because it may contain
a wide variety of characters. Note also that braces must not be used.


--
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/