diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-03-06 16:34:36 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-06 16:41:57 -0800 |
commit | a182df6f3d850a07439646144e118c6992a197b2 (patch) | |
tree | 5245f0a0ddcb5f3dfa4a724cea0eaf0f500ba4c5 /alot | |
parent | 8735de7479c4c0745a1bd49cfd89f96669a6ce93 (diff) |
USe get_payload.decode instead of decoding ourselves.
Diffstat (limited to 'alot')
-rw-r--r-- | alot/db/utils.py | 3 |
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) |