Re: [exim] Feature Needed

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Peter Bowyer
Dátum:  
Címzett: exim-users
Tárgy: 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.

Peter

--
Peter Bowyer
Email: peter@???
Tel: +44 1296 768003
VoIP: sip:peter@???