You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Marc Perkel <ma...@perkel.com> on 2009/04/09 16:25:11 UTC
Registry Barrier code
What source file is the registry barrier code in?
Thanks in advance.
Re: Registry Barrier code
Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Thu, 2009-04-09 at 07:25 -0700, Marc Perkel wrote:
> What source file is the registry barrier code in?
M::SA::Util::RegistrarBoundaries
--
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
Re: Registry Barrier code
Posted by Marc Perkel <ma...@perkel.com>.
Thanks - that was what I was looking for.
Mark Martinec wrote:
> Marc,
>
>
>> What source file is the registry barrier code in?
>>
>
> Mail/SpamAssassin/Util/RegistrarBoundaries.pm
>
> but is slightly out of date, for example it does
> not include registered IDN tld names:
>
> XN--0ZWM56D
> XN--11B5BS3A9AJ6G
> XN--80AKHBYKNJ4F
> XN--9T4B11YI5A
> XN--DEBA0AD
> XN--G6W251D
> XN--HGBK6AJ7F53BBA
> XN--HLCJ6AYA9ESC7A
> XN--JXALPDLP
> XN--KGBECHTV
> XN--ZCKZAH
>
> (source: http://data.iana.org/TLD/tlds-alpha-by-domain.txt)
>
> Mark
>
>
Re: Registry Barrier code
Posted by Justin Mason <jm...@jmason.org>.
On Thu, Apr 9, 2009 at 16:31, Justin Mason <jm...@jmason.org> wrote:
> On Thu, Apr 9, 2009 at 16:14, Mark Martinec <Ma...@ijs.si> wrote:
>> Marc,
>>
>>> What source file is the registry barrier code in?
>>
>> Mail/SpamAssassin/Util/RegistrarBoundaries.pm
>>
>> but is slightly out of date, for example it does
>> not include registered IDN tld names:
>>
>> XN--0ZWM56D
>> XN--11B5BS3A9AJ6G
>> XN--80AKHBYKNJ4F
>> XN--9T4B11YI5A
>> XN--DEBA0AD
>> XN--G6W251D
>> XN--HGBK6AJ7F53BBA
>> XN--HLCJ6AYA9ESC7A
>> XN--JXALPDLP
>> XN--KGBECHTV
>> XN--ZCKZAH
>>
>> (source: http://data.iana.org/TLD/tlds-alpha-by-domain.txt)
>
>
> !!!
>
> can you open a bug?
oh wait --
http://en.wikipedia.org/wiki/Top-level_domain :
'RFC 2606 reserves the following four top-level domain names for
various purposes, with the intention that these should not be used in
production networks within the global domain name system:
* .example: reserved for use in examples
* .invalid: reserved for use in obviously invalid domain names
* .localhost: reserved to avoid conflict with the traditional use
of localhost
* .test: reserved for use in tests
In 2007 eleven other internationalized ".test" TLDs were created:[2][3]
1. .xn--kgbechtv Arabic (.إختبار)
2. .xn--hgbk6aj7f53bba Persian (.آزمایشی)
3. .xn--0zwm56d Chinese, simplified (.测试)
4. .xn--g6w251d Chinese, traditional (.測試)
5. .xn--80akhbyknj4f Cyrillic (.испытание)
6. .xn--11b5bs3a9aj6g Hindi (.परीक्षा)
7. .xn--jxalpdlp Greek (.δοκιμή)
8. .xn--9t4b11yi5a Korean (.테스트)
9. .xn--deba0ad Yiddish (.טעסט)
10. .xn--zckzah Japanese (.テスト)
11. .xn--hlcj6aya9esc7a Tamil (.பரிட்சை)'
--j.
Re: Registry Barrier code
Posted by Justin Mason <jm...@jmason.org>.
On Thu, Apr 9, 2009 at 16:14, Mark Martinec <Ma...@ijs.si> wrote:
> Marc,
>
>> What source file is the registry barrier code in?
>
> Mail/SpamAssassin/Util/RegistrarBoundaries.pm
>
> but is slightly out of date, for example it does
> not include registered IDN tld names:
>
> XN--0ZWM56D
> XN--11B5BS3A9AJ6G
> XN--80AKHBYKNJ4F
> XN--9T4B11YI5A
> XN--DEBA0AD
> XN--G6W251D
> XN--HGBK6AJ7F53BBA
> XN--HLCJ6AYA9ESC7A
> XN--JXALPDLP
> XN--KGBECHTV
> XN--ZCKZAH
>
> (source: http://data.iana.org/TLD/tlds-alpha-by-domain.txt)
!!!
can you open a bug?
--j.
Re: Registry Barrier code
Posted by Mark Martinec <Ma...@ijs.si>.
Marc,
> What source file is the registry barrier code in?
Mail/SpamAssassin/Util/RegistrarBoundaries.pm
but is slightly out of date, for example it does
not include registered IDN tld names:
XN--0ZWM56D
XN--11B5BS3A9AJ6G
XN--80AKHBYKNJ4F
XN--9T4B11YI5A
XN--DEBA0AD
XN--G6W251D
XN--HGBK6AJ7F53BBA
XN--HLCJ6AYA9ESC7A
XN--JXALPDLP
XN--KGBECHTV
XN--ZCKZAH
(source: http://data.iana.org/TLD/tlds-alpha-by-domain.txt)
Mark