Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] Accept new TLDs when validating FQDNs
@ 2014-11-15 10:53 Albert Krewinkel
  2014-11-17  8:36 ` Julien Danjou
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Krewinkel @ 2014-11-15 10:53 UTC (permalink / raw)
  To: ding; +Cc: Albert Krewinkel

The fully qualified domain name validation regex in message didn't
accept new top-level domain names, causing additional confirmation
steps or failures when sending mail.  This adds the
non-internationalized new TLDs listed here:
https://en.wikipedia.org/wiki/GTLD
---
 lisp/message.el | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/lisp/message.el b/lisp/message.el
index 59d22ef..a0ac449 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -1963,7 +1963,45 @@ You must have the \"hashcash\" binary installed, see `hashcash-path'."
 	  "cat\\|com\\|coop\\|edu\\|gov\\|"
 	  "info\\|int\\|jobs\\|"
 	  "mil\\|mobi\\|museum\\|name\\|net\\|"
-	  "org\\|pro\\|tel\\|travel\\|uucp\\)")
+	  "org\\|pro\\|tel\\|travel\\|uucp\\|"
+          ;; ICANN-era generic top-level domains
+          "academy\\|actor\\|agency\\|airforce\\|archi\\|associates\\|axa\\|"
+          "bar\\|bargains\\|bayern\\|beer\\|berlin\\|best\\|bid\\|bike\\|"
+          "biz\\|black\\|blackfriday\\|blue\\|boutique\\|build\\|builders\\|"
+          "buzz\\|cab\\|camera\\|camp\\|capital\\|cards\\|care\\|career\\|"
+          "careers\\|cash\\|catering\\|center\\|ceo\\|cheap\\|christmas\\|"
+          "church\\|citic\\|cleaning\\|clinic\\|clothing\\|club\\|codes\\|"
+          "coffee\\|college\\|cologne\\|com\\|community\\|company\\|computer\\|"
+          "construction\\|contractors\\|cooking\\|cool\\|country\\|creditcard\\|"
+          "cruises\\|dance\\|dating\\|democrat\\|dental\\|desi\\|design\\|"
+          "diamonds\\|directory\\|discount\\|domains\\|education\\|email\\|"
+          "engineering\\|enterprises\\|equipment\\|estate\\|eus\\|events\\|"
+          "exchange\\|expert\\|exposed\\|fail\\|farm\\|feedback\\|finance\\|"
+          "financial\\|fish\\|fishing\\|fitness\\|flights\\|florist\\|foo\\|"
+          "foundation\\|frogans\\|fund\\|furniture\\|futbol\\|gal\\|"
+          "gallery\\|gift\\|glass\\|globo\\|gmo\\|gop\\|graphics\\|gratis\\|"
+          "gripe\\|guide\\|guitars\\|guru\\|hamburg\\|haus\\|hiphop\\|"
+          "holdings\\|holiday\\|homes\\|horse\\|house\\|immobilien\\|"
+          "industries\\|info\\|ink\\|institute\\|insure\\|international\\|"
+          "investments\\|jetzt\\|juegos\\|kaufen\\|kim\\|kitchen\\|kiwi\\|"
+          "koeln\\|kred\\|land\\|lat\\|latino\\|lease\\|life\\|lighting\\|"
+          "limited\\|limo\\|link\\|loans\\|london\\|luxe\\|luxury\\|"
+          "management\\|mango\\|marketing\\|media\\|meet\\|menu\\|miami\\|"
+          "moda\\|moe\\|monash\\|moscow\\|motorcycles\\|nagoya\\|name\\|"
+          "net\\|neustar\\|ninja\\|nyc\\|okinawa\\|onl\\|org\\|paris\\|"
+          "partners\\|parts\\|photo\\|photography\\|photos\\|pics\\|"
+          "pictures\\|pink\\|plumbing\\|pro\\|productions\\|properties\\|"
+          "pub\\|qpon\\|quebec\\|recipes\\|red\\|reisen\\|ren\\|rentals\\|"
+          "repair\\|report\\|rest\\|reviews\\|rich\\|rocks\\|rodeo\\|"
+          "ruhr\\|ryukyu\\|saarland\\|schule\\|scot\\|services\\|sexy\\|"
+          "shiksha\\|shoes\\|singles\\|social\\|sohu\\|solar\\|solutions\\|"
+          "soy\\|supplies\\|supply\\|support\\|surgery\\|systems\\|tattoo\\|"
+          "tax\\|technology\\|tienda\\|tips\\|today\\|tokyo\\|tools\\|"
+          "town\\|toys\\|trade\\|training\\|university\\|uno\\|vacations\\|"
+          "vegas\\|ventures\\|viajes\\|villas\\|vision\\|vodka\\|vote\\|"
+          "voting\\|voto\\|voyage\\|wang\\|watch\\|webcam\\|wed\\|wien\\|"
+          "wiki\\|works\\|wtc\\|wtf\\|xyz\\|yachts\\|yokohama\\|you\\|"
+          "zone\\)")
   ;; http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
   ;; http://en.wikipedia.org/wiki/GTLD
   ;; `approved, but not yet in operation': .xxx
-- 
2.1.3




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Accept new TLDs when validating FQDNs
  2014-11-15 10:53 [PATCH] Accept new TLDs when validating FQDNs Albert Krewinkel
@ 2014-11-17  8:36 ` Julien Danjou
  2015-01-26  4:16   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Danjou @ 2014-11-17  8:36 UTC (permalink / raw)
  To: Albert Krewinkel; +Cc: ding

[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

On Sat, Nov 15 2014, Albert Krewinkel wrote:

> The fully qualified domain name validation regex in message didn't
> accept new top-level domain names, causing additional confirmation
> steps or failures when sending mail.  This adds the
> non-internationalized new TLDs listed here:
> https://en.wikipedia.org/wiki/GTLD

Good idea, pushed.

-- 
Julien Danjou
# Free Software hacker
# http://julien.danjou.info

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Accept new TLDs when validating FQDNs
  2014-11-17  8:36 ` Julien Danjou
@ 2015-01-26  4:16   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2015-01-26  4:16 UTC (permalink / raw)
  To: Julien Danjou; +Cc: Albert Krewinkel, ding

Julien Danjou <julien@danjou.info> writes:

> On Sat, Nov 15 2014, Albert Krewinkel wrote:
>
>> The fully qualified domain name validation regex in message didn't
>> accept new top-level domain names, causing additional confirmation
>> steps or failures when sending mail.  This adds the
>> non-internationalized new TLDs listed here:
>> https://en.wikipedia.org/wiki/GTLD
>
> Good idea, pushed.

I wonder whether we could reuse the domains from the Emacs
etc/publicsuffix.txt file instead of adding all these domains once
again...

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-26  4:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-15 10:53 [PATCH] Accept new TLDs when validating FQDNs Albert Krewinkel
2014-11-17  8:36 ` Julien Danjou
2015-01-26  4:16   ` Lars Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).