-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The Idea is that this code would open a "compose new message"-Window
with all the fields filled in, and it would have "encrypt" and "sign"
preselected, regardless of the user preferences, since we know the
Recipients Public Key.

The background is that my patch is adding a checkbox to the signing
window saying "Send the signed public key to its owner" (for
Key-Signing Parties, a bit like caff, but with a GUI and for all
platforms). Since we are currently signing the public key, we can be
sure that the owner has one, and since we are sending them their
public key, it would make sense to encrypt it like caff does, to make
sure they can actually decrypt it (proving that they own the private
key) before they can import my signature.

Most of the logic already works, but I am lacking a way to mark the
mail as "encrypt & sign" from within the logic below.

Sincerely
Max

On 08/17/2013 10:04 AM, Patrick Brunschwig wrote:
> On 17.08.13 02:12, Max Maass wrote:
>> Good evening everyone,
> 
>> I am sitting at a Night of Code with a few other guys in
>> Hamburg, and we are currently working on a few patches for
>> Enigmail.
> 
>> One of those patches requires, among other things, to be able to
>>  create a mail and mark it to be signed and encrypted on sending 
>> (even if the default settings say otherwise).
> 
>> Currently, the message is created using the following code:
> 
>> let fields = 
>> Components.classes["@mozilla.org/messengercompose/composefields;1"].createInstance(Components.interfaces.nsIMsgCompFields);
>
>> 
> 
> let params =
>> Components.classes["@mozilla.org/messengercompose/composeparams;1"].createInstance(Components.interfaces.nsIMsgComposeParams);
>
>> 
> 
> [...]
>> fields.to = ...; fields.subject = ...; fields.body = ...; 
>> params.type = Components.interfaces.nsIMsgCompType.New; 
>> params.format = Components.interfaces.nsIMsgCompFormat.Default; 
>> params.composeFields = fields; 
>> MailServices.compose.OpenComposeWindowWithParams(null, params);
> 
>> How can I mark this message to be encrypted and signed, using
>> the APIs provided by Enigmail? Is that even possible?
> 
> I don't understand exactly how this should work. You mark a message
> as to be signed during message composition. When is the message
> actually signed? Do you want to save the message as draft in
> between writing and sending?
> 
> -Patrick
> 
> _______________________________________________ enigmail-users
> mailing list [email protected] 
> https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJ8BAEBCgBmBQJSDzpFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEM0ODA5N0EzQUY3RDU1MTg5QTc3QUMx
NjlGOTYyNDM0MDg4MjVFAAoJEBafliQ0CIJeSUsP/RSNcxETKyanSMMjKIm5HsF6
B8NnovgVsagYHfnWcHTxyD/kz5uhdTbWYPCgRQQ2AOwFjMZewIU/IaoVqpBKhaq+
76FwnSpczFkNdp3phmCAfyMaPf1vyI+YMuAwkSenmGktxzCQ/EmbAAWTscUd8QgC
4YzLR554ryWJNKHw/Ly9uw2w0kA4OsOE06xi+eqiF5tUy0iwehlBs+OJlVy6HZgF
2f99WBkEhA+Yw6yeSgFrz2W+hhH8kL7rL3MMPRIxygOm/mA3rUCPlM38nEuL5raF
v1i7EZZk96RSq4yvCy/I+x2CpEcmhQ141NHBEhF6X9p/q584aB9ZkpTHDQwtEAnA
k2ddgIfFUzktUDLlFtnYfEmyZhXeuk05AB/6lnGIabPZm7T4nEoFCim89T2XB92E
0Lx79HXBanuJ2A95ii1ZoUnaf/mW7emzjuMtLH08zNfI5U3p4tAoCvWq5pyXMl0i
ypJ1Zw+q/RwdD4xaEShyIU9W1vXWNpweWE3eF5r5Wrw3DsK6zqESewRhJ/y03bvn
AaptjhWT2LSxEOFJhghPJNMvoFoFBHQPiH93J0Wa3uPnZK1Dqz6YtSU+N5V//Gnn
Ws1dYbqoiX9kZk6swB08U2UyJbjHV6BMI+WE8feN6W+C9VAu1MQtBm2jF22uhxHm
W2qVDHusv7wt/b784uCB
=sa5Y
-----END PGP SIGNATURE-----

_______________________________________________
enigmail-users mailing list
[email protected]
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

Reply via email to