equal
deleted
inserted
replaced
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): |