On 01/11/2020 19:29, it_support via enigmail-users wrote: > Hello, > > i have asked bugzilla how to import a PGP key file via Javascript (i will run > it from the Thunderbird console). > > But they told me they don't give add-on support there. So i guess i have to > ask you about this.
That answer is wrong. The code is in Thunderbird, and not in an add-on. > > Anyway, i have found the functions i need to call to do this: > > it's getGpgKeyData > > from > https://hg.mozilla.org/comm-central/file/595dddfbd18b/mail/extensions/openpgp/content/modules/cryptoAPI/gnupg-keylist.jsm > > or importKeyFromFileAPI > > from > https://hg.mozilla.org/comm-central/file/595dddfbd18b/mail/extensions/openpgp/content/modules/cryptoAPI/gnupg-key.jsm > > But both of them are not implemented. Indeed they do nothing other than > throwing a "Not implemented" exception. > > Are you going to implement those methods soon? Or do you suggest another > solution? I can't give a definitive answer because I'm not a Thunderbird staff member. But from my POV it's most unlikely that these functions will ever be implemented. Thunderbird uses RNP, and does not support GnuPG (apart for some basic functions for signing and decryption). I think these files are a left-over from the code imported from Thunderbird and are not used anymore. -Patrick
signature.asc
Description: OpenPGP digital signature
_______________________________________________ enigmail-users mailing list enigmail-users@enigmail.net To unsubscribe or make changes to your subscription click here: https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net