summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-07-05 11:12:05 +0200
committerLucas Hoffmann <l-m-h@web.de>2017-07-11 20:58:34 +0200
commit3ff1c96634cea36be70ededc295607b8935cf38c (patch)
treeacf456a9fba07efcf148a74ffd16a87ac52506ee
parent97fe1033a24423afb6a540b0eec59a352bd2bfad (diff)
Display tags in envelope buffer
-rw-r--r--alot/buffers.py3
-rw-r--r--alot/commands/envelope.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index 80ec0855..09cf1fe8 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -178,6 +178,9 @@ class EnvelopeBuffer(Buffer):
description += key.uids[0].uid
lines.append(('GPG encrypt', description))
+ if self.envelope.tags:
+ lines.append(('Tags', ','.join(self.envelope.tags)))
+
# add header list widget iff header values exists
if lines:
key_att = settings.get_theming_attribute('envelope', 'header_key')
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 5537a31f..481af1f3 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -625,3 +625,5 @@ class TagCommand(Command):
elif self.action == 'toggle':
new = old.symmetric_difference(tags)
envelope.tags = sorted(new)
+ # reload buffer
+ ui.current_buffer.rebuild()