* 'VirtualMailManager/VirtualMailManager.py'
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 12 Sep 2008 20:57:08 +0000
changeset 84 c1363b84a24b
parent 83 cc195af37de0
child 85 6f2fa633f1a1
* 'VirtualMailManager/VirtualMailManager.py' - VirtualMailManager.aliasAdd() checks additional to changes from revision 95 whether the destination alias exists.
VirtualMailManager/VirtualMailManager.py
--- a/VirtualMailManager/VirtualMailManager.py	Fri Sep 12 00:25:33 2008 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Fri Sep 12 20:57:08 2008 +0000
@@ -607,10 +607,11 @@
         alias.save()
         gid = self.__getDomain(alias._dest._domainname).getID()
         if gid > 0 and not VirtualMailManager.accountExists(self.__dbh,
-                alias._dest):
+        alias._dest) and not VirtualMailManager.aliasExists(self.__dbh, 
+        alias._dest):
             self.__warnings.append(
-                    _(u"The destination account »%s« doesn't exists yet.")%\
-                            alias._dest)
+                _(u"The destination account/alias »%s« doesn't exists yet.")%\
+                        alias._dest)
 
     def userDelete(self, emailaddress, force=None):
         if force not in [None, 'delalias']: