On Thu, Mar 10, 2011 at 03:53:08PM +0100, Uros Meglic wrote: > if I got this right the $header_from expand into "Username <
> username@???>". Is this right? Now how could get just <
> username@???> 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.