summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-03-06 16:34:36 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-03-06 16:41:51 -0800
commitfabb789fe4f1298dc4a94184fe82a8070dd43c9b (patch)
tree5245f0a0ddcb5f3dfa4a724cea0eaf0f500ba4c5
parent7e15223274875ea8bfaac5f4ed0b2bef6056bbe8 (diff)
USe get_payload.decode instead of decoding ourselves.
-rw-r--r--alot/db/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py
index 35652601..32cf43cf 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -133,8 +133,7 @@ def _handle_signatures(original, message, params):
try:
sigs = crypto.verify_detached(
helper.email_as_bytes(message.get_payload(0)),
- message.get_payload(1).get_payload().encode('ascii'))
- # XXX: I think ascii is the right thing to use for the pgp signature
+ message.get_payload(1).get_payload(decode=True))
except GPGProblem as e:
malformed = str(e)