VirtualMailManager/VirtualMailManager.py
changeset 19 bf9a03c476fc
parent 18 c98e08791ee8
child 20 55146c78b3fb
equal deleted inserted replaced
18:c98e08791ee8 19:bf9a03c476fc
   488         info = acc.getInfo()
   488         info = acc.getInfo()
   489         if self.__Cfg.getboolean('maildir', 'diskusage') or diskusage:
   489         if self.__Cfg.getboolean('maildir', 'diskusage') or diskusage:
   490             info['disk usage'] = self.__getDiskUsage('%(maildir)s' % info)
   490             info['disk usage'] = self.__getDiskUsage('%(maildir)s' % info)
   491         return info
   491         return info
   492 
   492 
       
   493     def user_byID(self, uid):
       
   494         from Account import getAccountByID
       
   495         self.__dbConnect()
       
   496         return getAccountByID(uid, self.__dbh)
       
   497 
   493     def user_password(self, emailaddress, password):
   498     def user_password(self, emailaddress, password):
   494         acc = self.__getAccount(emailaddress)
   499         acc = self.__getAccount(emailaddress)
   495         acc.modify('password', self.__pwhash(password))
   500         acc.modify('password', self.__pwhash(password))
   496 
   501 
   497     def user_name(self, emailaddress, name):
   502     def user_name(self, emailaddress, name):