diff options
author | Johannes Kulick <kulick@hildensia.de> | 2012-12-12 13:26:45 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2013-02-19 10:10:07 +0000 |
commit | 2b0a251d896ad0b0ea16337825339bdae014ccba (patch) | |
tree | 5da9f3d406cb65e166d672aad15b6f8ce9a3aff2 /alot | |
parent | 1937d3896ee76c1261222cdc523e0d3ede2a697e (diff) |
show whether the mail will be encrypted
We add a GPG encrypt line with the key to encrypt as description in the envelope
buffer
Diffstat (limited to 'alot')
-rw-r--r-- | alot/buffers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index 555268e1..117eecce 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -152,6 +152,13 @@ class EnvelopeBuffer(Buffer): description += ', with key ' + sign_key.subkeys[0].keyid lines.append(('GPG sign', description)) + if self.envelope.encrypt: + description = 'Yes' + encrypt_key = self.envelope.encrypt_key + if encrypt_key is not None and len(encrypt_key.subkeys) > 0: + description += ', with key ' + encrypt_key.subkeys[0].keyid + lines.append(('GPG encrypt', description)) + # add header list widget iff header values exists if lines: key_att = settings.get_theming_attribute('envelope', 'header_key') |