diff options
Diffstat (limited to 'alot/buffers.py')
-rw-r--r-- | alot/buffers.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/alot/buffers.py b/alot/buffers.py index 117eecce..8f344081 100644 --- a/alot/buffers.py +++ b/alot/buffers.py @@ -154,9 +154,20 @@ class EnvelopeBuffer(Buffer): 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 + encrypt_keys = self.envelope.encrypt_keys + if len(encrypt_keys) == 1: + description += ', with key ' + elif len(encrypt_keys) > 1: + description += ', with keys ' + first_key = True + for key in encrypt_keys: + if key is not None: + if first_key: + first_key = False + else: + description += ', ' + if len(key.subkeys) > 0: + description += key.subkeys[0].keyid lines.append(('GPG encrypt', description)) # add header list widget iff header values exists |