VirtualMailManager/VirtualMailManager.py
changeset 19 bf9a03c476fc
parent 18 c98e08791ee8
child 20 55146c78b3fb
--- a/VirtualMailManager/VirtualMailManager.py	Tue Apr 15 02:49:21 2008 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Fri Apr 18 03:46:11 2008 +0000
@@ -490,6 +490,11 @@
             info['disk usage'] = self.__getDiskUsage('%(maildir)s' % info)
         return info
 
+    def user_byID(self, uid):
+        from Account import getAccountByID
+        self.__dbConnect()
+        return getAccountByID(uid, self.__dbh)
+
     def user_password(self, emailaddress, password):
         acc = self.__getAccount(emailaddress)
         acc.modify('password', self.__pwhash(password))