Skip to content

Commit

Permalink
last clawmails not support yet
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Apr 16, 2019
1 parent dfa2d2f commit a79d62f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Linux/lazagne/softwares/mails/clawsmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,20 @@ def accountrc_decrypt(self, filename, key, mode=CFB):
for s in p.sections():
values = {}
try:
try:
address = p.get(s, 'address')
account = p.get(s, 'account_name')
except Exception:
address = '<unknown>'
account = '<unknown>'
address = p.get(s, 'address')
account = p.get(s, 'account_name')
except Exception:
address = '<unknown>'
account = '<unknown>'

try:
password = self.pass_decrypt(p.get(s, 'password'), key, mode=mode)
values = {'Login': account, 'URL': address, 'Password': password}
except Exception as e:
self.error('Error resolving password for account "%s": %s' % (s, e))
values = {'Login': account, 'URL': address}
self.debug('This version seems to not be supported')
self.debug(e)


# write credentials into a text file
if len(values) != 0:
Expand Down

0 comments on commit a79d62f

Please sign in to comment.