diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-05-12 21:01:56 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-05-12 21:01:56 +0100 |
commit | e47ee126ab7572387e7133e4bf34ba0d513878b6 (patch) | |
tree | 8e7b63d8e146ae9740fea8f0d90899c41178a415 /alot/crypto.py | |
parent | f4ade9b28e2223853967558c00ab8ca164ea6253 (diff) |
lookup gpg key once during compose
.. and not in reply/forward/editnew.
This also obsoletes Envelope.apply_account_crypto_settings,
which needed a reference to UI for error notifications.
Diffstat (limited to 'alot/crypto.py')
-rw-r--r-- | alot/crypto.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/crypto.py b/alot/crypto.py index b9196590..cf6cdd77 100644 --- a/alot/crypto.py +++ b/alot/crypto.py @@ -88,9 +88,10 @@ class CryptoContext(pyme.core.Context): keys, an exception will be thrown). :param keyid: filter term for the keyring (usually a key ID) + :type keyid: bytestring :rtype: pyme.pygpgme._gpgme_key """ - result = self.op_keylist_start(keyid, 0) + result = self.op_keylist_start(str(keyid), 0) key = self.op_keylist_next() if self.op_keylist_next() is not None: # Deferred import to avoid a circular import dependency |