--- a/VirtualMailManager/domain.py Tue Aug 27 21:17:38 2013 +0000
+++ b/VirtualMailManager/domain.py Sun Feb 02 14:36:01 2014 +0000
@@ -1,5 +1,5 @@
# -*- coding: UTF-8 -*-
-# Copyright (c) 2007 - 2013, Pascal Volk
+# Copyright (c) 2007 - 2014, Pascal Volk
# See COPYING for distribution information.
"""
VirtualMailManager.domain
@@ -24,7 +24,9 @@
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,} # one or more labels
+ (?:[a-z]{2,} # a ASCII TLD
+ |xn--[a-z0-9]{4,})$ # or a ACE TLD""", re.X)
_ = lambda msg: msg
cfg_dget = lambda option: None