summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-04-23 22:42:35 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-23 22:42:35 +0200
commit0f21435a605a928d7ed8d5a440503c45a04d5e08 (patch)
tree981518c1d2fe387cba3adc41d80d1c2c3fb9bfb4 /alot/buffers.py
parent8a0992342ac19f02680f1cc5eaedc09c672a35b8 (diff)
add togglesign command to toggle an envelope’s sign flag
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index e4401198..0b27c23d 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -121,6 +121,15 @@ class EnvelopeBuffer(Buffer):
self.header_wgt = widgets.HeadersList(lines)
displayed_widgets.append(self.header_wgt)
+ # sign/encrypt lines
+ lines = []
+ if self.envelope.sign:
+ lines.append(('sign', 'yes'))
+
+ if lines:
+ self.crypto_wgt = widgets.HeadersList(lines)
+ displayed_widgets.append(self.crypto_wgt)
+
#display attachments
lines = []
for a in self.envelope.attachments: