Browse Source

enigmail.pubkey_iterator() for key_import()

master
Volker Birk 2 years ago
parent
commit
d42e9892d6
2 changed files with 8 additions and 3 deletions
  1. +6
    -0
      enigmail.py
  2. +2
    -3
      pEp_import.py

+ 6
- 0
enigmail.py View File

@ -91,3 +91,9 @@ def secret(fpr):
def identities():
return thunderbird.identities(thunderbird_base)
def pubkey_iterator():
for x in command('--list-key'):
if x[0] == 'pub':
yield keydata(x[4])

+ 2
- 3
pEp_import.py View File

@ -11,6 +11,5 @@ import enigmail
own_pgp_keys = enigmail.own_pgp_keys()
identities = enigmail.identities()
print own_pgp_keys
print
print identities
for key in enigmail.pubkey_iterator():
pass

Loading…
Cancel
Save