[Enigmail] Importing PGP key via code

it_support via enigmail-users <[email protected]> Sun, 1 Nov 2020 20:29:26 +0200
Newsgroups gmane.comp.mozilla.enigmail.general
Message-ID <mailman.1342.1604255374.83694.enigmail-users_enigmail.net@enigmail.net>
--===============1826279439530928679==
Content-Type: message/rfc822
Content-Disposition: inline

Received: from [10.4.2.214] (helo=mxin014.mail.hostpoint.ch)
	by mailman012.mail.hostpoint.ch with esmtp (Exim 4.92.3 (FreeBSD))
	(envelope-from <[email protected]>)
	id 1kZI6c-000L2B-Lb
	for [email protected]; Sun, 01 Nov 2020 19:29:30 +0100
Received: from ec2-52-16-177-229.eu-west-1.compute.amazonaws.com ([52.16.177.229] helo=ec2-108-128-93-243.eu-west-1.compute.amazonaws.com)
	by mxin014.mail.hostpoint.ch with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
	(Exim 4.92.3 (FreeBSD))
	(envelope-from <[email protected]>)
	id 1kZI6c-000Jde-Hw
	for [email protected]; Sun, 01 Nov 2020 19:29:30 +0100
Received: from [192.168.0.101] (unknown [94.68.26.234])
	by ec2-108-128-93-243.eu-west-1.compute.amazonaws.com (Postfix) with ESMTPSA id 965FBC9B827
	for <[email protected]>; Sun,  1 Nov 2020 18:29:29 +0000 (UTC)
To: [email protected]
From: it_support <[email protected]>
Subject: Importing PGP key via code
Message-ID: <[email protected]>
Date: Sun, 1 Nov 2020 20:29:26 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: it
X-Vs-State: LEGIT
X-Vs-Score: 0
X-Vs-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleelgdduudejucetufdoteggodetrfcurfhrohhfihhlvgemucfjohhsthhpohhinhhtpdggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepvffhuffkffgfgggtgfesthekredttdefleenucfhrhhomhepihhtpghsuhhpphhorhhtuceoihhtpghsuhhpphhorhhtsehsrghvvggshigsohhokhhinhhgrdgtohhmqeenucggtffrrghtthgvrhhnpeekuddtgfelheetjeeifeeggeejjeeitdeuvddugfehudekteefhfeifeegheetgfenucffohhmrghinhepmhhoiihilhhlrgdrohhrghenucfkphephedvrdduiedrudejjedrvddvledpleegrdeikedrvdeirddvfeegnecurfgrrhgrmhepihhnvghtpeehvddrudeirddujeejrddvvdelpdhmrghilhhfrhhomhepihhtpghsuhhpphhorhhtsehsrghvvggshigsohhokhhinhhgrdgtohhmpdhrtghpthhopegvnhhighhmrghilhdquhhsvghrshesvghnihhgmhgrihhlrdhnvght

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.

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?

Thanks



--===============1826279439530928679==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

--===============1826279439530928679==--