Import data from Enigmail to pEp for Thunderbird
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
470 B

# coding=UTF-8
# macOS only supports Python 2.7
import sys
import enigmail
import pEp_JSON
import thunderbird
from enigmail import thunderbird_base
own_pgp_keys = enigmail.own_pgp_keys()
identities = enigmail.identities()
print identities
with pEp_JSON.Connection() as connect:
print thunderbird.enigmail_assignKeysByEmailAddr(thunderbird_base)
print enigmail.rules.test_address("")
print enigmail.comm_partner_pgp_keys()