VirtualMailManager/handler.py
branchv0.7.x
changeset 711 2a75058fc064
parent 694 b1bfd4d1d9c0
parent 703 58815c004a61
child 727 695426b49de0
--- a/VirtualMailManager/handler.py	Tue Aug 27 21:17:38 2013 +0000
+++ b/VirtualMailManager/handler.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.handler
@@ -475,7 +475,8 @@
                            INVALID_ARGUMENT)
         dom = self._get_domain(domainname)
         dominfo = dom.get_info()
-        if dominfo['domain name'].startswith('xn--'):
+        if dominfo['domain name'].startswith('xn--') or \
+           dominfo['domain name'].count('.xn--'):
             dominfo['domain name'] += ' (%s)' % \
                          dominfo['domain name'].encode('utf-8').decode('idna')
         if details is None: