summaryrefslogtreecommitdiff
path: root/alot/crypto.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/crypto.py')
-rw-r--r--alot/crypto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/alot/crypto.py b/alot/crypto.py
index 30de529f..08213f34 100644
--- a/alot/crypto.py
+++ b/alot/crypto.py
@@ -291,6 +291,7 @@ def check_uid_validity(key, email):
"""
for key_uid in key.uids:
if email == key_uid.email and not key_uid.revoked and \
- not key_uid.invalid and key_uid.validity >= 4:
+ not key_uid.invalid and \
+ key_uid.validity >= gpgme.VALIDITY_FULL:
return True
return False