VMM/domain: Accept also ccTLDs and 'new' gTLDs.
--- 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