VirtualMailManager/Account.py
changeset 24 48ea255e8a85
parent 20 55146c78b3fb
child 32 ceb700bc4a80
--- a/VirtualMailManager/Account.py	Sat Apr 26 02:49:34 2008 +0000
+++ b/VirtualMailManager/Account.py	Mon Apr 28 21:33:28 2008 +0000
@@ -32,7 +32,7 @@
         self._mid = 0
         self._tid = 0
         self._passwd = password
-        self._setAddr(address)
+        self._setAddr()
         self._exists()
         if self._isAlias():
             raise VMMAccountException(
@@ -63,8 +63,8 @@
         else:
             return False
 
-    def _setAddr(self, address):
-        self._localpart, d = address.split('@')
+    def _setAddr(self):
+        self._localpart, d = self._addr.split('@')
         dom = Domain(self._dbh, d)
         self._gid = dom.getID()
         if self._gid == 0: