VMM/domain: Accept also ccTLDs and 'new' gTLDs.
authorPascal Volk <user@localhost.localdomain.org>
Sun, 26 Jan 2014 16:13:00 +0000
changeset 701 110491a871a7
parent 699 4c8e15c2f01b
child 702 01db2457bbed
VMM/domain: Accept also ccTLDs and 'new' gTLDs.
README
VirtualMailManager/domain.py
--- a/README	Tue Aug 27 21:13:28 2013 +0000
+++ b/README	Sun Jan 26 16:13:00 2014 +0000
@@ -18,7 +18,7 @@
 • General features
 
   ‣ Unicode/UTF-8 capable (input/storage/output)
-  ‣ supports IDN_
+  ‣ supports IDN_ (also ccTLDs/ccIDNs and 'new' gTLDs)
   ‣ supports the mailbox format Maildir_ and Dovecot's own high-performance
     mailbox formats single- and multi-\ dbox_
   ‣ configurable basic mailbox structure, including sub-mailboxes
--- a/VirtualMailManager/domain.py	Tue Aug 27 21:13:28 2013 +0000
+++ b/VirtualMailManager/domain.py	Sun Jan 26 16:13:00 2014 +0000
@@ -25,7 +25,7 @@
 
 
 MAILDIR_CHARS = '0123456789abcdefghijklmnopqrstuvwxyz'
-RE_DOMAIN = re.compile(r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$")
+RE_DOMAIN = re.compile(r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z0-9-]{2,}$")
 _ = lambda msg: msg
 cfg_dget = lambda option: None