/[smeserver]/rpms/spamassassin/sme9/Mail-SpamAssassin-3.3.2-update_RegistrarBoundaries.patch
ViewVC logotype

Contents of /rpms/spamassassin/sme9/Mail-SpamAssassin-3.3.2-update_RegistrarBoundaries.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Mon Dec 17 12:04:44 2018 UTC (5 years, 10 months ago) by jcrisp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Initial Import spamasaasin 3.4.2

1 diff -Nur Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm Mail-SpamAssassin-3.3.2_bz8980/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm
2 --- Mail-SpamAssassin-3.3.2/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm 2011-06-07 01:59:16.000000000 +0200
3 +++ Mail-SpamAssassin-3.3.2_bz8980/lib/Mail/SpamAssassin/Util/RegistrarBoundaries.pm 2015-04-09 19:16:40.000000000 +0200
4 @@ -8,9 +8,9 @@
5 # The ASF licenses this file to you under the Apache License, Version 2.0
6 # (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at:
8 -#
9 +#
10 # http://www.apache.org/licenses/LICENSE-2.0
11 -#
12 +#
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 @@ -22,6 +22,15 @@
17
18 Mail::SpamAssassin::Util::RegistrarBoundaries - domain delegation rules
19
20 +This module is DEPRECATED AND REPLACED WITH
21 +Mail::SpamAssassin::RegistryBoundaries !!
22 +
23 +DO NOT USE. This is left as transition fallback for third party plugins.
24 +
25 +It will be removed in the future but all functionality has been
26 +transitioned to Mail::SpamAssassin::RegistryBoundaries and the TLD
27 +updates via 20_aux_tlds.cf delivered via sa-update with version 3.4.1.
28 +
29 =cut
30
31 package Mail::SpamAssassin::Util::RegistrarBoundaries;
32 @@ -35,49 +44,25 @@
33 @ISA %TWO_LEVEL_DOMAINS %THREE_LEVEL_DOMAINS %US_STATES %VALID_TLDS $VALID_TLDS_RE
34 );
35
36 +# %VALID_TLDS
37 # The list of currently-valid TLDs for the DNS system.
38 #
39 -# http://data.iana.org/TLD/tlds-alpha-by-domain.txt
40 -# Version 2008020601, Last Updated Thu Feb 7 09:07:00 2008 UTC
41 -# The following have been removed from the list because they are
42 -# inactive, as can be seen in the Wikipedia articles about them
43 -# as of 2008-02-08, e.g. http://en.wikipedia.org/wiki/.so_%28domain_name%29
44 -# bv gb pm sj so um yt
45 +# This list is deprecated and unmaintained. It will become increasingly
46 +# out of date and will be removed in a future release.
47 #
48 -# Remember to also change regexp below when updating!
49 -
50 -foreach (qw/
51 - ac ad ae aero af ag ai al am an ao aq ar arpa as asia at au aw ax az
52 - ba bb bd be bf bg bh bi biz bj bm bn bo br bs bt bw by bz ca cat cc
53 - cd cf cg ch ci ck cl cm cn co com coop cr cu cv cx cy cz de dj dk dm
54 - do dz ec edu ee eg er es et eu fi fj fk fm fo fr ga gd ge gf gg gh
55 - gi gl gm gn gov gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il im
56 - in info int io iq ir is it je jm jo jobs jp ke kg kh ki km kn kp kr kw
57 - ky kz la lb lc li lk lr ls lt lu lv ly ma mc md me mg mh mil mk ml mm
58 - mn mo mobi mp mq mr ms mt mu museum mv mw mx my mz na name nc ne net
59 - nf ng ni nl no np nr nu nz om org pa pe pf pg ph pk pl pn pr pro ps
60 - pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sk sl sm sn
61 - sr st su sv sy sz tc td tel tf tg th tj tk tl tm tn to tp tr travel tt
62 - tv tw tz ua ug uk us uy uz va vc ve vg vi vn vu wf ws ye za
63 - zm zw
64 - /) {
65 +# As of 3.4.1, updates will be done in rules/20_aux_tlds.cf
66 +foreach (qw/abbott abogado ac academy accountant accountants active actor ad ads adult ae aero af afl ag agency ai airforce al allfinanz alsace am amsterdam an android ao apartments aq aquarelle ar archi army arpa as asia associates at attorney au auction audio autos aw ax axa az ba band bank bar barclaycard barclays bargains bayern bb bbc bd be beer berlin best bf bg bh bi bid bike bingo bio biz bj black blackfriday bloomberg blue bm bmw bn bnpparibas bo boats bond boo boutique br brussels bs bt budapest build builders business buzz bv bw by bz bzh ca cab cal camera camp cancerresearch canon capetown capital caravan cards care career careers cartier casa cash casino cat catering cbn cc cd center ceo cern cf cfd cg ch channel chat cheap chloe christmas chrome church ci citic city ck cl claims cleaning click clinic clothing club cm cn co coach codes coffee college cologne com community company computer condos construction consulting contractors cooking cool coop country courses cr credit creditcard cricket crs cruises cu cuisinella cv cw cx cy cymru cz dabur dad dance date dating datsun day dclk de deals degree delivery democrat dental dentist desi design dev diamonds diet digital direct directory discount dj dk dm dnp do docs doha domains doosan download durban dvag dz eat ec edu education ee eg email emerck energy engineer engineering enterprises epson equipment er erni es esq estate et eu eurovision eus events everbank exchange expert exposed fail faith fan fans farm fashion feedback fi film finance financial firmdale fish fishing fit fitness fj fk flights florist flowers flsmidth fly fm fo foo football forex forsale foundation fr frl frogans fund furniture futbol ga gal gallery garden gb gbiz gd gdn ge gent gf gg ggee gh gi gift gifts gives gl glass gle global globo gm gmail gmo gmx gn gold goldpoint golf goo goog google gop gov gp gq gr graphics gratis green gripe gs gt gu guge guide guitars guru gw gy hamburg hangout haus healthcare help here hermes hiphop hiv hk hm hn holdings holiday homes horse host hosting house how hr ht hu ibm id ie ifm il im immo immobilien in industries infiniti info ing ink institute insure int international investments io iq ir irish is it iwc java jcb je jetzt jm jo jobs joburg jp juegos kaufen kddi ke kg kh ki kim kitchen kiwi km kn koeln komatsu kp kr krd kred kw ky kyoto kz la lacaixa land lat latrobe lawyer lb lc lds lease leclerc legal lgbt li lidl life lighting limited limo link lk loan loans london lotte lotto lr ls lt ltda lu luxe luxury lv ly ma madrid maif maison management mango market marketing markets marriott mc md me media meet melbourne meme memorial menu mg mh miami mil mini mk ml mm mma mn mo mobi moda moe monash money mormon mortgage moscow motorcycles mov movie mp mq mr ms mt mtn mtpc mu museum mv mw mx my mz na nagoya name navy nc ne net network neustar new news nexus nf ng ngo nhk ni nico ninja nissan nl no np nr nra nrw ntt nu nyc nz okinawa om one ong onl online ooo oracle org organic osaka otsuka ovh pa page panerai paris partners parts party pe pf pg ph pharmacy photo photography photos physio piaget pics pictet pictures pink pizza pk pl place plumbing plus pm pn pohl poker porn post pr praxi press pro prod productions prof properties property ps pt pub pw py qa qpon quebec re realtor recipes red redstone rehab reise reisen reit ren rentals repair report republican rest restaurant review reviews rich rio rip ro rocks rodeo rs rsvp ru ruhr rw ryukyu sa saarland sale samsung sap sarl saxo sb sc sca scb schmidt school schule schwarz science scot sd se services sew sexy sg sh shiksha shoes shriram si singles site sj sk sky sl sm sn so social software sohu solar solutions soy space spiegel spreadbetting sr st study style su sucks supplies supply support surf surgery suzuki sv sx sy sydney systems sz taipei tatar tattoo tax tc td tech technology tel temasek tennis tf tg th tickets tienda tips tires tirol tj tk tl tm tn to today tokyo tools top toshiba tours town toys tr trade trading training travel trust tt tui tv tw tz ua ug uk university uno uol us uy uz va vacations vc ve vegas ventures versicherung vet vg vi viajes video villas vision vlaanderen vn vodka vote voting voto voyage vu wales wang watch webcam website wed wedding wf whoswho wien wiki williamhill win wme work works world ws wtc wtf xin xn--1qqw23a xn--30rr7y xn--3bst00m xn--3ds443g xn--3e0b707e xn--45brj9c xn--45q11c xn--4gbrim xn--55qw42g xn--55qx5d xn--6frz82g xn--6qq986b3xl xn--80adxhks xn--80ao21a xn--80asehdb xn--80aswg xn--90a3ac xn--90ais xn--9et52u xn--b4w605ferd xn--c1avg xn--cg4bki xn--clchc0ea0b2g2a9gcd xn--czr694b xn--czrs0t xn--czru2d xn--d1acj3b xn--d1alf xn--fiq228c5hs xn--fiq64b xn--fiqs8s xn--fiqz9s xn--flw351e xn--fpcrj9c3d xn--fzc2c9e2c xn--gecrj9c xn--h2brj9c xn--hxt814e xn--i1b6b1a6a2e xn--io0a7i xn--j1amh xn--j6w193g xn--kprw13d xn--kpry57d xn--kput3i xn--l1acc xn--lgbbat1ad8j xn--mgb9awbf xn--mgba3a4f16a xn--mgbaam7a8h xn--mgbab2bd xn--mgbayh7gpa xn--mgbbh1a71e xn--mgbc0a9azcg xn--mgberp4a5d4ar xn--mgbx4cd0ab xn--mxtq1m xn--ngbc5azd xn--node xn--nqv7f xn--nqv7fs00ema xn--o3cw4h xn--ogbpf8fl xn--p1acf xn--p1ai xn--pgbs0dh xn--q9jyb4c xn--qcka1pmc xn--rhqv96g xn--s9brj9c xn--ses554g xn--unup4y xn--vermgensberater-ctb xn--vermgensberatung-pwb xn--vhquv xn--vuq861b xn--wgbh1c xn--wgbl6a xn--xhq521b xn--xkc2al3hye2a xn--xkc2dl3a5ee0h xn--yfro4i67o xn--ygbi2ammx xn--zfr164b xxx xyz yachts yandex ye yodobashi yoga yokohama youtube yt za zip zm zone zuerich zw/) {
67 $VALID_TLDS{$_} = 1;
68 }
69
70 +# $VALID_TLDS_RE
71 # %VALID_TLDS as Regexp::List optimized regexp, for use in Plugins etc
72 -# Paste above list to:
73 -# perl -MRegexp::List -e '$/=undef; $_=<>; $r = Regexp::List->new; push @l, $_ for (split); print $r->list2re(@l)'
74 -# Verified up to date 20110501
75 -$VALID_TLDS_RE = qr/
76 - (?=[abcdefghijklmnopqrstuvwyz])
77 - (?:a(?:e(?:ro)?|r(?:pa)?|s(?:ia)?|[cdfgilmnoqtuwxz])|b(?:iz?|[abdefghjmnorstwyz])
78 - |c(?:at?|o(?:m|op)?|[cdfghiklmnruvxyz])|d[ejkmoz]|e(?:[cegrst]|d?u)|f[ijkmor]
79 - |g(?:[adefghilmnpqrstuwy]|ov)|h[kmnrtu]|i(?:n(?:fo|t)?|[delmoqrst])|j(?:o(?:bs)?|[emp])
80 - |k[eghimnprwyz]|l[abcikrstuvy]|m(?:o(?:bi)?|u(?:seum)?|[acdeghkmnpqrstvwxyz]|i?l)
81 - |n(?:a(?:me)?|et?|[cfgilopruz])|o(?:m|rg)|p(?:ro?|[aefghklnstwy])|r[eosuw]
82 - |s[abcdeghiklmnrtuvyz]|t(?:r(?:avel)?|[cdfghjkmnoptvwz]|e?l)|u[agksyz]
83 - |v[aceginu]|w[fs]|z[amw]|qa|ye
84 - )/ix;
85 +#
86 +# This regex is deprecated and unmaintained. It will become increasingly
87 +# out of date and will be removed in a future release.
88 +#
89 +# As of 3.4.1, this regex is generated automatically in Conf.pm
90 +$VALID_TLDS_RE = qr/(?:X(?:N--(?:M(?:GB(?:A(?:(?:3A4F16|YH7GP)A|AM7A8H|B2BD)|ERP4A5D4AR|C0A9AZCG|BH1A71E|X4CD0AB|9AWBF)|XTQ1M)|F(?:IQ(?:(?:228C5H|S8|Z9)S|64B)|PCRJ9C3D|ZC2C9E2C|LW351E)|C(?:ZR(?:694B|S0T|U2D)|LCHC0EA0B2G2A9GCD|G4BKI|1AVG)|V(?:(?:ERMGENSBERAT(?:UNG-PW|ER-CT)|UQ861)B|HQUV)|X(?:KC2(?:DL3A5EE0H|AL3HYE2A)|HQ521B)|3(?:E0B707E|BST00M|DS443G|0RR7Y)|N(?:QV7F(?:S00EMA)?|GBC5AZD|ODE)|80A(?:S(?:EHDB|WG)|DXHKS|O21A)|(?:Q(?:CKA1PM|9JYB4)|GECRJ9)C|4(?:5(?:BRJ9|Q11)C|GBRIM)|KP(?:R(?:W13|Y57)D|UT3I)|9(?:0A(?:3AC|IS)|ET52U)|P(?:1A(?:CF|I)|GBS0DH)|Y(?:FRO4I67O|GBI2AMMX)|6(?:QQ986B3XL|FRZ82G)|I(?:1B6B1A6A2E|O0A7I)|L(?:GBBAT1AD8J|1ACC)|H(?:2BRJ9C|XT814E)|O(?:GBPF8FL|3CW4H)|S(?:9BRJ9C|ES554G)|J(?:6W193G|1AMH)|55Q(?:W42G|X5D)|D1A(?:CJ3B|LF)|WGB(?:H1C|L6A)|B4W605FERD|1QQW23A|RHQV96G|ZFR164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]|ING)|YAGE|DKA)|(?:LAANDERE)?N|A(?:CATIONS)?)|H(?:[KMNRTU]|O(?:L(?:DINGS|IDAY)|ST(?:ING)?|[RU]SE|MES|W)|E(?:R(?:MES|E)|ALTHCARE|LP)|A(?:MBURG|NGOUT|US)|I(?:PHOP|V))|W(?:[FS]|E(?:B(?:SITE|CAM)|D(?:DING)?)|I(?:LLIAMHILL|E?N|KI)|A(?:LES|TCH|NG)|OR(?:KS?|LD)|HOSWHO|T[CF]|ME)|N(?:[FLOPUZ]|E(?:T(?:WORK)?|USTAR|WS?|XUS)?|I(?:SSAN|NJA|CO)?|A(?:GOYA|ME|VY)?|R[AW]?|GO?|Y?C|HK|TT)|K(?:[EGHMPWZ]|I(?:TCHEN|WI|M)?|O(?:MATSU|ELN)|(?:AUFE)?N|R(?:E?D)?|Y(?:OTO)?|DDI)|O(?:(?:(?:TSU|SA)K|KINAW)A|R(?:G(?:ANIC)?|ACLE)|N(?:[EG]|L(?:INE)?)|OO|VH|M)|Y(?:[ET]|O(?:(?:KOHAM|G)A|DOBASHI|UTUBE)|A(?:CHTS|NDEX))|J(?:[MP]|O(?:B(?:URG|S))?|E(?:TZT)?|UEGOS|AVA|CB)|U(?:[AGKSYZ]|N(?:IVERSITY|O)|OL)|Z(?:[AMW]|UERICH|ONE|IP)|Q(?:UEBEC|PON|A))/ix;
91
92 # Two-Level TLDs
93 #
94 @@ -89,6 +74,16 @@
95 # The freeapp.net site now says that information on the site is obsolete
96 # See discussion and sources in comments of bug 5677
97 # updated as per bug 5815
98 +# cleanup in progress per bug 6795 (axb)
99 +# Unsorted sources:
100 +# .ua : http://hostmaster.ua
101 +# .hu : http://www.domain.hu/domain/English/szabalyzat/sld.html
102 +#
103 +# This list is deprecated and unmaintained. It will become increasingly
104 +# out of date and will be removed in a future release.
105 +#
106 +# As of 3.4.1, updates will be done in rules/20_aux_tlds.cf
107 +#
108 foreach(qw/
109
110 com.ac edu.ac gov.ac mil.ac net.ac org.ac
111 @@ -115,7 +110,7 @@
112 com.bm edu.bm gov.bm net.bm org.bm
113 com.bn edu.bn net.bn org.bn
114 com.bo edu.bo gob.bo gov.bo int.bo mil.bo net.bo org.bo tv.bo
115 - adm.br adv.br agr.br am.br arq.br art.br ato.br bio.br bmd.br cim.br cng.br cnt.br com.br coop.br dpn.br ecn.br edu.br eng.br esp.br etc.br eti.br far.br fm.br fnd.br fot.br fst.br g12.br ggf.br gov.br imb.br ind.br inf.br jor.br lel.br mat.br med.br mil.br mus.br net.br nom.br not.br ntr.br odo.br org.br ppg.br pro.br psc.br psi.br qsl.br rec.br slg.br srv.br tmp.br trd.br tur.br tv.br vet.br zlg.br
116 + adm.br adv.br agr.br am.br arq.br art.br ato.br bio.br bmd.br cim.br cng.br cnt.br com.br coop.br dpn.br eco.br ecn.br edu.br eng.br esp.br etc.br eti.br far.br fm.br fnd.br fot.br fst.br g12.br ggf.br gov.br imb.br ind.br inf.br jor.br lel.br mat.br med.br mil.br mus.br net.br nom.br not.br ntr.br odo.br org.br ppg.br pro.br psc.br psi.br qsl.br rec.br slg.br srv.br tmp.br trd.br tur.br tv.br vet.br zlg.br
117 com.bs net.bs org.bs
118 com.bt edu.bt gov.bt net.bt org.bt
119 co.bw org.bw
120 @@ -124,8 +119,9 @@
121 ab.ca bc.ca gc.ca mb.ca nb.ca nf.ca nl.ca ns.ca nt.ca nu.ca on.ca pe.ca qc.ca sk.ca yk.ca
122 co.ck edu.ck gov.ck net.ck org.ck
123 ac.cn ah.cn bj.cn com.cn cq.cn edu.cn fj.cn gd.cn gov.cn gs.cn gx.cn gz.cn ha.cn hb.cn he.cn hi.cn hk.cn hl.cn hn.cn jl.cn js.cn jx.cn ln.cn mo.cn net.cn nm.cn nx.cn org.cn qh.cn sc.cn sd.cn sh.cn sn.cn sx.cn tj.cn tw.cn xj.cn xz.cn yn.cn zj.cn
124 - arts.co com.co edu.co firm.co gov.co info.co int.co mil.co net.co nom.co org.co rec.co store.co web.co
125 + arts.co com.co edu.co firm.co gov.co info.co int.co mil.co net.co nom.co org.co rec.co web.co
126 lkd.co.im ltd.co.im plc.co.im
127 + co.cm com.cm net.cm
128 au.com br.com cn.com de.com eu.com gb.com hu.com no.com qc.com ru.com sa.com se.com uk.com us.com uy.com za.com
129 ac.cr co.cr ed.cr fi.cr go.cr or.cr sa.cr
130 com.cu edu.cu gov.cu inf.cu net.cu org.cu
131 @@ -135,7 +131,7 @@
132 com.dm edu.dm gov.dm net.dm org.dm
133 art.do com.do edu.do gob.do gov.do mil.do net.do org.do sld.do web.do
134 art.dz asso.dz com.dz edu.dz gov.dz net.dz org.dz pol.dz
135 - com.ec edu.ec fin.ec gov.ec info.ec k12.ec med.ec mil.ec net.ec org.ec pro.ec
136 + com.ec edu.ec fin.ec gov.ec info.ec k12.ec med.ec mil.ec net.ec org.ec pro.ec gob.ec
137 co.ee com.ee edu.ee fie.ee med.ee org.ee pri.ee
138 com.eg edu.eg eun.eg gov.eg mil.eg net.eg org.eg sci.eg
139 com.er edu.er gov.er ind.er mil.er net.er org.er
140 @@ -144,7 +140,7 @@
141 aland.fi
142 ac.fj biz.fj com.fj gov.fj id.fj info.fj mil.fj name.fj net.fj org.fj pro.fj school.fj
143 ac.fk co.fk com.fk gov.fk net.fk nom.fk org.fk
144 - aeroport.fr assedic.fr asso.fr avocat.fr avoues.fr barreau.fr cci.fr chambagri.fr chirurgiens-dentistes.fr com.fr experts-comptables.fr geometre-expert.fr gouv.fr greta.fr huissier-justice.fr medecin.fr nom.fr notaires.fr pharmacien.fr port.fr prd.fr presse.fr tm.fr veterinaire.fr
145 + tm.fr asso.fr nom.fr prd.fr presse.fr com.fr gouv.fr
146 com.ge edu.ge gov.ge mil.ge net.ge org.ge pvt.ge
147 ac.gg alderney.gg co.gg gov.gg guernsey.gg ind.gg ltd.gg net.gg org.gg sark.gg sch.gg
148 com.gh edu.gh gov.gh mil.gh org.gh
149 @@ -158,7 +154,7 @@
150 com.hn edu.hn gob.hn mil.hn net.hn org.hn
151 com.hr from.hr iz.hr name.hr
152 adult.ht art.ht asso.ht com.ht coop.ht edu.ht firm.ht gouv.ht info.ht med.ht net.ht org.ht perso.ht pol.ht pro.ht rel.ht shop.ht
153 - 2000.hu ac.hu agrar.hu bolt.hu casino.hu city.hu co.hu edu.hu erotica.hu erotika.hu film.hu forum.hu games.hu gov.hu hotel.hu info.hu ingatlan.hu jogasz.hu konyvelo.hu lakas.hu media.hu news.hu org.hu priv.hu reklam.hu sex.hu shop.hu sport.hu suli.hu szex.hu tm.hu tozsde.hu utazas.hu video.hu
154 + 2000.hu agrar.hu bolt.hu casino.hu city.hu co.hu erotica.hu erotika.hu film.hu forum.hu games.hu hotel.hu info.hu ingatlan.hu jogasz.hu konyvelo.hu lakas.hu media.hu news.hu org.hu priv.hu reklam.hu sex.hu shop.hu sport.hu suli.hu szex.hu tm.hu tozsde.hu utazas.hu video.hu
155 ac.id co.id go.id mil.id net.id or.id sch.id web.id
156 gov.ie
157 ac.il co.il gov.il idf.il k12.il muni.il net.il org.il
158 @@ -197,6 +193,7 @@
159 edu.mn gov.mn org.mn
160 com.mo edu.mo gov.mo net.mo org.mo
161 music.mobi weather.mobi
162 + co.mp edu.mp gov.mp net.mp org.mp
163 com.mt edu.mt gov.mt net.mt org.mt tm.mt uu.mt
164 co.mu com.mu
165 aero.mv biz.mv com.mv coop.mv edu.mv gov.mv info.mv int.mv mil.mv museum.mv name.mv net.mv org.mv pro.mv
166 @@ -207,7 +204,7 @@
167 com.nc net.nc org.nc
168 de.net gb.net uk.net
169 ac.ng com.ng edu.ng gov.ng net.ng org.ng sch.ng
170 - com.ni edu.ni gob.ni net.ni nom.ni org.ni
171 + ac.ni biz.ni com.ni edu.ni gob.ni in.ni info.ni int.ni mil.ni net.ni nom.ni org.ni web.ni
172 fhs.no folkebibl.no fylkesbibl.no herad.no idrett.no kommune.no mil.no museum.no priv.no stat.no tel.no vgs.no
173 com.np edu.np gov.np mil.np net.np org.np
174 biz.nr co.nr com.nr edu.nr fax.nr gov.nr info.nr mob.nr mobil.nr mobile.nr net.nr org.nr tel.nr tlf.nr
175 @@ -220,7 +217,7 @@
176 ac.pg com.pg net.pg
177 com.ph edu.ph gov.ph mil.ph net.ph ngo.ph org.ph
178 biz.pk com.pk edu.pk fam.pk gob.pk gok.pk gon.pk gop.pk gos.pk gov.pk net.pk org.pk web.pk
179 - agro.pl aid.pl art.pl atm.pl auto.pl bialystok.pl biz.pl com.pl edu.pl gda.pl gdansk.pl gmina.pl gov.pl gsm.pl info.pl katowice.pl krakow.pl lodz.pl lublin.pl mail.pl media.pl miasta.pl mil.pl net.pl ngo.pl nieruchomosci.pl nom.pl olsztyn.pl opole.pl org.pl pc.pl powiat.pl poznan.pl priv.pl realestate.pl rel.pl sex.pl shop.pl sklep.pl slupsk.pl sos.pl szczecin.pl szkola.pl targi.pl tm.pl torun.pl tourism.pl travel.pl turystyka.pl warszawa.pl waw.pl wroc.pl wroclaw.pl za.pl zgora.pl
180 + art.pl biz.pl com.pl edu.pl gov.pl info.pl mil.pl net.pl ngo.pl org.pl
181 biz.pr com.pr edu.pr gov.pr info.pr isla.pr name.pr net.pr org.pr pro.pr
182 cpa.pro law.pro med.pro
183 com.ps edu.ps gov.ps net.ps org.ps plo.ps sec.ps
184 @@ -230,7 +227,7 @@
185 asso.re com.re nom.re
186 arts.ro com.ro firm.ro info.ro nom.ro nt.ro org.ro rec.ro store.ro tm.ro www.ro
187 ac.rs co.rs edu.rs gov.rs in.rs org.rs
188 - ac.ru adygeya.ru altai.ru amur.ru amursk.ru arkhangelsk.ru astrakhan.ru baikal.ru bashkiria.ru belgorod.ru bir.ru bryansk.ru buryatia.ru cbg.ru chel.ru chelyabinsk.ru chita.ru chukotka.ru chuvashia.ru cmw.ru com.ru dagestan.ru dudinka.ru e-burg.ru edu.ru fareast.ru gov.ru grozny.ru int.ru irkutsk.ru ivanovo.ru izhevsk.ru jamal.ru jar.ru joshkar-ola.ru k-uralsk.ru kalmykia.ru kaluga.ru kamchatka.ru karelia.ru kazan.ru kchr.ru kemerovo.ru khabarovsk.ru khakassia.ru khv.ru kirov.ru kms.ru koenig.ru komi.ru kostroma.ru krasnoyarsk.ru kuban.ru kurgan.ru kursk.ru kustanai.ru kuzbass.ru lipetsk.ru magadan.ru magnitka.ru mari-el.ru mari.ru marine.ru mil.ru mordovia.ru mosreg.ru msk.ru murmansk.ru mytis.ru nakhodka.ru nalchik.ru net.ru nkz.ru nnov.ru norilsk.ru nov.ru novosibirsk.ru nsk.ru omsk.ru orenburg.ru org.ru oryol.ru oskol.ru palana.ru penza.ru perm.ru pp.ru pskov.ru ptz.ru pyatigorsk.ru rnd.ru rubtsovsk.ru ryazan.ru sakhalin.ru samara.ru saratov.ru simbirsk.ru smolensk.ru snz.ru spb.ru stavropol.ru stv.ru surgut.ru syzran.ru tambov.ru tatarstan.ru test.ru tom.ru tomsk.ru tsaritsyn.ru tsk.ru tula.ru tuva.ru tver.ru tyumen.ru udm.ru udmurtia.ru ulan-ude.ru vdonsk.ru vladikavkaz.ru vladimir.ru vladivostok.ru volgograd.ru vologda.ru voronezh.ru vrn.ru vyatka.ru yakutia.ru yamal.ru yaroslavl.ru yekaterinburg.ru yuzhno-sakhalinsk.ru zgrad.ru
189 + ac.ru com.ru edu.ru gov.ru int.ru mil.ru net.ru org.ru pp.ru
190 ac.rw co.rw com.rw edu.rw gouv.rw gov.rw int.rw mil.rw net.rw
191 com.sa edu.sa gov.sa med.sa net.sa org.sa pub.sa sch.sa
192 com.sb edu.sb gov.sb net.sb org.sb
193 @@ -267,7 +264,7 @@
194 com.ws edu.ws gov.ws net.ws org.ws
195 com.ye edu.ye gov.ye mil.ye net.ye org.ye
196 ac.za alt.za bourse.za city.za co.za edu.za gov.za law.za mil.za net.za ngo.za nom.za org.za school.za tm.za web.za
197 - ac.zm co.zm gov.zm org.zm sch.zm
198 + ac.zm co.zm com.zm edu.zm gov.zm org.zm sch.zm
199 ac.zw co.zw gov.zw org.zw
200
201 /) {
202 @@ -277,14 +274,20 @@
203 # This is required because the .us domain is nuts. See $THREE_LEVEL_DOMAINS
204 # below.
205 #
206 +# This list is moved to transitioned to Mail::SpamAssassin::RegistryBoundaries
207 +
208 foreach (qw/
209 - ak al ar az ca co ct dc de fl ga gu hi ia id il in ks ky la ma md me mi
210 - mn mo ms mt nc nd ne nh nj nm nv ny oh ok or pa pr ri sc sd tn tx ut va vi
211 + ak al ar az ca co ct dc de fl ga gu hi ia id il in ks ky la ma md me mi
212 + mn mo ms mt nc nd ne nh nj nm nv ny oh ok or pa pr ri sc sd tn tx ut va vi
213 vt wa wi wv wy
214 /) {
215 $US_STATES{$_} = 1;
216 }
217
218 +##
219 +## DO NOT UPDATE THIS DEPRECATED LIST
220 +## Everything is now maintained in sa-update 20_aux_tlds.cf
221 +##
222 foreach (qw/
223 demon.co.uk esc.edu.ar lkd.co.im plc.co.im
224 /) {
225 @@ -307,13 +310,19 @@
226 "www.foo.com" => ( "www", "foo.com" )
227 "www.foo.co.uk" => ( "www", "foo.co.uk" )
228
229 +This function has been moved !!! See Mail::SpamAssassin::RegistryBoundaries !!!
230 +
231 +This is left as transition fallback for third party plugins.
232 +
233 +It will be removed in the future.
234 +
235 =cut
236
237 sub split_domain {
238 my $domain = lc shift;
239 my $hostname = '';
240
241 - if ($domain) {
242 + if (defined $domain && $domain ne '') {
243 # www..spamassassin.org -> www.spamassassin.org
244 $domain =~ tr/././s;
245
246 @@ -327,32 +336,32 @@
247
248 while (@domparts > 1) { # go until we find the TLD
249 if (@domparts == 4) {
250 - if ($domparts[3] eq 'us' &&
251 - (($domparts[0] eq 'pvt' && $domparts[1] eq 'k12') ||
252 - ($domparts[0] =~ /^c[io]$/)))
253 - {
254 + if ($domparts[3] eq 'us' &&
255 + (($domparts[0] eq 'pvt' && $domparts[1] eq 'k12') ||
256 + ($domparts[0] =~ /^c[io]$/)))
257 + {
258 # http://www.neustar.us/policies/docs/rfc_1480.txt
259 # "Fire-Dept.CI.Los-Angeles.CA.US"
260 # "<school-name>.PVT.K12.<state>.US"
261 last if ($US_STATES{$domparts[2]});
262 - }
263 + }
264 }
265 elsif (@domparts == 3) {
266 # http://www.neustar.us/policies/docs/rfc_1480.txt
267 - # demon.co.uk
268 - # esc.edu.ar
269 - # [^\.]+\.${US_STATES}\.us
270 - if ($domparts[2] eq 'us') {
271 + # demon.co.uk
272 + # esc.edu.ar
273 + # [^\.]+\.${US_STATES}\.us
274 + if ($domparts[2] eq 'us') {
275 last if ($US_STATES{$domparts[1]});
276 - }
277 + }
278 else {
279 my $temp = join(".", @domparts);
280 last if ($THREE_LEVEL_DOMAINS{$temp});
281 }
282 }
283 elsif (@domparts == 2) {
284 - # co.uk, etc.
285 - my $temp = join(".", @domparts);
286 + # co.uk, etc.
287 + my $temp = join(".", @domparts);
288 last if ($TWO_LEVEL_DOMAINS{$temp});
289 }
290 push(@hostname, shift @domparts);
291 @@ -380,8 +389,14 @@
292
293 Examples:
294
295 - "www.foo.com" => "foo.com"
296 - "www.foo.co.uk" => "foo.co.uk"
297 + "www.foo.com" => "foo.com"
298 + "www.foo.co.uk" => "foo.co.uk"
299 +
300 +This function has been moved !!! See Mail::SpamAssassin::RegistryBoundaries !!!
301 +
302 +This is left as transition fallback for third party plugins.
303 +
304 +It will be removed in the future.
305
306 =cut
307
308 @@ -399,6 +414,12 @@
309 (a) does not contain whitespace, (b) contains at least one dot, and (c)
310 uses a valid TLD or ccTLD.
311
312 +This function has been moved !!! See Mail::SpamAssassin::RegistryBoundaries !!!
313 +
314 +This is left as transition fallback for third party plugins.
315 +
316 +It will be removed in the future.
317 +
318 =back
319
320 =cut

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed