VirtualMailManager/Account.py
changeset 41 fbcb7e314510
parent 38 c44ea4526546
child 43 92a6132940f5
equal deleted inserted replaced
40:ab0748a5da9a 41:fbcb7e314510
   186             keys = ['name', 'uid', 'gid', 'maildir', 'transport', 'smtp',
   186             keys = ['name', 'uid', 'gid', 'maildir', 'transport', 'smtp',
   187                     'pop3', 'imap', 'managesieve']
   187                     'pop3', 'imap', 'managesieve']
   188             info = dict(zip(keys, info))
   188             info = dict(zip(keys, info))
   189             for service in ['smtp', 'pop3', 'imap', 'managesieve']:
   189             for service in ['smtp', 'pop3', 'imap', 'managesieve']:
   190                 if bool(info[service]):
   190                 if bool(info[service]):
   191                     info[service] = 'enabled'
   191                     info[service] = _('enabled')
   192                 else:
   192                 else:
   193                     info[service] = 'disabled'
   193                     info[service] = _('disabled')
   194             info['address'] = self._addr
   194             info['address'] = self._addr
   195             info['maildir'] = '%s/%s/%s' % (self._base, info['uid'],
   195             info['maildir'] = '%s/%s/%s' % (self._base, info['uid'],
   196                     MailLocation(self._dbh,
   196                     MailLocation(self._dbh,
   197                         mid=info['maildir']).getMailLocation())
   197                         mid=info['maildir']).getMailLocation())
   198             info['transport'] = Transport(self._dbh,
   198             info['transport'] = Transport(self._dbh,