On 17/09/05, Marc Perkel <[EMAIL PROTECTED]> wrote:
> Like to have a string function that extraced the main domain part out od
> an email address that removes subdomains. And it would be smart enought
> to deal with 3 part main domains such as:
> 
> yahoo.co.uk
> 
> Not sure what to call it but it would work like ${domman:address}
> 

Can you write a regex (or even explain in English) how to recognize
the 'main domain'? If you can, the feature can be easily implemented
in a ${sg function.

But I suspect you can't, because the answer is non-deterministic.

Peter

-- 
Peter Bowyer
Email: [EMAIL PROTECTED]
Tel: +44 1296 768003
VoIP: sip:[EMAIL PROTECTED]

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to