From ef948d877b9976be9ceceb6a2ef7618a5f7b7e53 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 28 Aug 2017 17:09:12 -0400 Subject: [PATCH] another check-in, about to implement searching/fetching --- gpg/kant.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gpg/kant.py b/gpg/kant.py index 8216a5f..b99e9d0 100755 --- a/gpg/kant.py +++ b/gpg/kant.py @@ -38,8 +38,13 @@ def getKeys(args): os.environ['GNUPGHOME'] = args['gpgdir'] gpg = gpgme.Context() # Do we have the key already? If not, fetch. - #for k in args['rcpts']: - # if k['type'] + for k in args['rcpts'].keys(): + if args['rcpts'][k]['type'] == 'fpr': + # It's a key ID. + pass + elif args['rcpts'][k]['type'] == 'email': + # We need to actually do a lookup on the email address. + pass return(gpg) def serverParser(uri):