# HG changeset patch # User Pascal Volk # Date 1252359636 0 # Node ID a08d783447062f29c2207e73622a99af9b92bcaf # Parent ead2a7e9f8be2b11260ffb8f6c04e4de8d6cc61f Alias.__init__(): Check really if the given address is not used. diff -r ead2a7e9f8be -r a08d78344706 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ā€.") %\