On Thu, Mar 10, 2011 at 03:53:08PM +0100, Uros Meglic wrote:
> if I got this right the $header_from expand into "Username <
> [email protected]>". Is this right? Now how could get just <
> [email protected]> out of this $header_from?

The expansion of ${address:$h_from:} will give you what you are
looking for.  If you want it in all lower-case, you could even do
${lc:${address:$h_from:}}

Now, this assumes that there is only a single address in the From:
header, which is 99.9% of the time.  Haven't tested it on what
happens with multiple addresses in the header.

--
Dean Brooks
[email protected]

-- 
## List details at http://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/

Reply via email to