Re: [exim] Detecting the domain part of a host address

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marc Perkel
Date:  
À: exim-users
Sujet: Re: [exim] Detecting the domain part of a host address


Philip Hazel wrote:
> On Mon, 25 Jun 2007, Peter Bowyer wrote:
>
>
>> On 25/06/07, Marc Perkel <marc@???> wrote:
>>
>>> What I want is to extract the cam.ac.uk part of the above names. It's
>>> the TLD + the first string immediately before the TLD.
>>>
>> Which would give you 'demon.co.uk' for many tens of thousands of
>> independently-managed spam sources.
>>
>
> Quite. The cam.ac.uk examples I quoted are also managed by a number of
> independent organizations. OK, all with "Cambridge University" in a
> broad sense, but we are a devolved organization (and indeed comprise
> many legal entities, not just organizational divisions).
>
> [And strictly, "the first string before the TLD" in "cam.ac.uk" is
> "ac".]
>
>


What I'm looking for is that part of the name that someone could register.