summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index f16647bf..b0ca6b7b 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -853,6 +853,14 @@ class ComposeCommand(Command):
@inlineCallbacks
def _set_encrypt(self, ui, envelope):
+ """Find and set the encryption keys in an envolope.
+
+ :param ui: the main user interface object
+ :type ui: alot.ui.UI
+ :param envolope: the envolope buffer object
+ :type envolope: alot.buffers.EnvelopeBuffer
+
+ """
encrypt_keys = []
for recipient in envelope.headers['To'][0].split(','):
if not recipient: