VirtualMailManager/Relocated.py
changeset 82 6c85915f3815
parent 76 14c0a092d7d2
child 102 485d3f7d6981
--- a/VirtualMailManager/Relocated.py	Wed Sep 10 00:00:37 2008 +0000
+++ b/VirtualMailManager/Relocated.py	Thu Sep 11 20:38:30 2008 +0000
@@ -39,10 +39,12 @@
         self._isNew = False
         self._setAddr()
         self._exists()
-        if VMM.VirtualMailManager.accountExists(self._dbh, self._addr):
+        if self._isNew and VMM.VirtualMailManager.accountExists(self._dbh,
+                self._addr):
             raise VMMRE(_(u"There is already an account with address »%s«.") %\
                     self._addr, ERR.ACCOUNT_EXISTS)
-        if VMM.VirtualMailManager.aliasExists(self._dbh, self._addr):
+        if self._isNew and VMM.VirtualMailManager.aliasExists(self._dbh,
+                self._addr):
             raise VMMRE(
                     _(u"There is already an alias with the address »%s«.") %\
                     self._addr, ERR.ALIAS_EXISTS)