Re: [exim] Extract email address from From header

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Dean Brooks
CC: exim-users, Marc Perkel
Subject: 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