VirtualMailManager/handler.py
branchv0.6.x
changeset 426 933b9debbec1
parent 422 33a45e4c80c4
child 441 1af5fe0683ce
--- a/VirtualMailManager/handler.py	Sat Sep 03 20:28:40 2011 +0000
+++ b/VirtualMailManager/handler.py	Sat Sep 03 20:42:05 2011 +0000
@@ -642,7 +642,8 @@
         if targetaddress is None:
             alias.delete()
         else:
-            alias.del_destination(EmailAddress(targetaddress))
+            alias.del_destination(DestinationEmailAddress(targetaddress,
+                                                          self._dbh))
 
     def user_info(self, emailaddress, details=None):
         """Wrapper around Account.get_info(...)"""