Alias.__init__(): Check really if the given address is not used.
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 07 Sep 2009 21:40:36 +0000
changeset 146 a08d78344706
parent 145 ead2a7e9f8be
child 147 e3fd0b67ae50
Alias.__init__(): Check really if the given address is not used.
VirtualMailManager/Alias.py
--- a/VirtualMailManager/Alias.py	Mon Sep 07 04:40:33 2009 +0000
+++ b/VirtualMailManager/Alias.py	Mon Sep 07 21:40:36 2009 +0000
@@ -33,11 +33,11 @@
         self._setAddr()
         if not self._dest is None:
             self._exists()
-        if self._isNew and VMM.VirtualMailManager.accountExists(self._dbh,
+        if VMM.VirtualMailManager.accountExists(self._dbh,
                 self._addr):
             raise VMMAE(_(u"There is already an account with address ā€œ%sā€.") %\
                     self._addr, ERR.ACCOUNT_EXISTS)
-        if self._isNew and VMM.VirtualMailManager.relocatedExists(self._dbh,
+        if VMM.VirtualMailManager.relocatedExists(self._dbh,
                 self._addr):
             raise VMMAE(
               _(u"There is already a relocated user with the address ā€œ%sā€.") %\