From 2b0a251d896ad0b0ea16337825339bdae014ccba Mon Sep 17 00:00:00 2001 From: Johannes Kulick Date: Wed, 12 Dec 2012 13:26:45 +0100 Subject: show whether the mail will be encrypted We add a GPG encrypt line with the key to encrypt as description in the envelope buffer --- alot/buffers.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'alot/buffers.py') 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') -- cgit v1.2.3