Skip to content

Commit

Permalink
Good instructions for bad key handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smári McCarthy authored and BjarniRunar committed Jan 19, 2015
1 parent 3491d45 commit a9e6836
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions mailpile/plugins/crypto_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,20 @@ def command(self):
if k_info['description'] is not None:
details.append(k_info)
if is_serious:
fixes += [[_('Disable bad keys:'),
_('Run: %s') % '`gpg --edit-key %s`' % fprint,
_('Type: %s') % '`disable`, `save`']]
fixes += [[_('Revoke bad keys:'),
_('Run: %s') % ('`gpg --gen-revoke %s`' % fprint),
_('Follow the instructions given'),
_('A block of text will be shown on your screen.'),
_('Send that block to contacts that have your key.'),
_('You can search for %s to find people who have it.') %
'`is:encrypted to:me`'
],[
_('Disable bad keys:'),
_('Run: %s') % ('`gpg --edit-key %s`' % fprint),
_('Type %s') % '`disable`',
_('Type %s') % '`save`',
_('You\'re done!'),
]]
serious += 1
if fprint not in good_keys:
bad_keys[fprint] = info
Expand Down

0 comments on commit a9e6836

Please sign in to comment.