Re: [exim] Sender Name & Email

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike Brudenell
Päiväys:  
Vastaanottaja: Exim Mailing List
Aihe: Re: [exim] Sender Name & Email
You might be thinking of the ${address:<string>} expansion operator, which
interprets the string as an RFX 2822 address, as it might appear in a
header line, and the effective address is extracted from it. If the string
does not parse successfully, the result is empty. See the *String
Expansions* chapter in the *Specification* for more details.

I don't think there's an expansion operator to get the name part but might
be wrong.

Remember that if the string isn't valid then the result is empty. Remember
too to convert it to lowercase if you need, otherwise you'll get whatever
capitalisation it was supplied in.

Cheers,
Mike B-)

On 17 August 2017 at 16:07, Rob Gunther via Exim-users <exim-users@???>
wrote:

> I thought I had in the past seen variables where Exim exposed the header
> From: data of the sender.
>
> Specifically breaking it down into an email address and name parts.
>
> I see the $sender_address which exposes the envelope address, but I'm
> looking for the header parts.
>
> Of course, I can access the header directly with $h_from: but if Exim is
> splitting out the header that would be much more reliable for my purposes.
>
> Anyone know if those variables really exist, or did I dream I read it
> before?
>
>
> Regards,
>
>
> Rob
> --
> ## 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/
>




--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm