Re: [exim] Feature Needed - Main_domain

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marc Perkel
Ημερομηνία:  
Προς: Chris Meadors
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Feature Needed - Main_domain


Chris Meadors wrote:

> Marc Perkel wrote:
>
>> If the part second to the end is co com net org then it's 3 part.
>>
>> warn    message = X-Maindomain: \
>> ${if 
>> match{XX${extract{-2}{.}{${domain:$h_From:}}}XX}{XX(co|com|net|org)XX}\
>> {${extract{-3}{.}{${domain:$h_From:}}}.${extract{-2}{.}{${domain:$h_From:}}}.${extract{-1}{.}{${domain:$h_From:}}}}\ 

>>
>> {${extract{-2}{.}{${domain:$h_From:}}}.${extract{-1}{.}{${domain:$h_From:}}}}\
>>
>> }
>
>
> What about com.com? Which is CNet's domain.
>
> Additionally, Japan uses .ne.jp and .or.jp. Not to mention Romania who
> uses: .tm.ro, .nt.ro, .nom.ro, .info.ro, .rec.ro, .arts.ro, .firm.ro,
> .store.ro and .www.ro in addition to the .com.ro and .org.ro. Which I'm
> sure a few of will collide with "main domains" of dotcoms. On top of
> that many other countries have their own different second-level domains
> defined.
>

You're making my point. This needs to be in Exim because it's far to
complex to do with a Regex.

--
Marc Perkel - marc@???

Spam Filter: http://www.junkemailfilter.com
    My Blog: http://marc.perkel.com