# HG changeset patch # User Pascal Volk # Date 1390752780 0 # Node ID 110491a871a74c0e20f66cecd97abf400397c630 # Parent 4c8e15c2f01b2e0cd01e8d6632efe1bccab6e3e2 VMM/domain: Accept also ccTLDs and 'new' gTLDs. diff -r 4c8e15c2f01b -r 110491a871a7 README --- 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 diff -r 4c8e15c2f01b -r 110491a871a7 VirtualMailManager/domain.py --- 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