summaryrefslogtreecommitdiff
path: root/alot/crypto.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-06-08 18:00:24 +0200
committerLucas Hoffmann <l-m-h@web.de>2017-06-21 09:17:55 +0200
commit2a45499ae351376656a797e5c03fea702691e59f (patch)
treeb470a7236fca8c3114998b446a6dfebb217fb505 /alot/crypto.py
parentde644b55de6f46cd9477ab212dafa625036e94d2 (diff)
Remove magic constant
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