Re: [exim] Extract email address from From header

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Dean Brooks
CC: exim-users, Marc Perkel
Asunto: Re: [exim] Extract email address from From header
On Sun, 8 Jan 2006, Dean Brooks wrote:

> >From this you could extract the domain or the local part as:
>
>    ${domain:${address:$h_from:}}
>    ${local_part:${address:$h_from:}}


Except in the case of the From: header line containing more than one
address. This is permitted by RFC 2822, though I suspect it is extremely
rare.


-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book