Author: Peter Bowyer Date: To: exim-users Subject: Re: [exim] Feature Needed
On 17/09/05, Marc Perkel <marc@???> 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.