-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEVAwUBUg8uisk25cDiHiw+AQjXLgf9HmYZpd5VdMUs0BNu1OUUi6r/lvlV/F+m i2KlG/E2oq4zao7XAMDLN0eLGsZSpczAfxy6BwZJwDczitf2+gdKuhwTH0bMbVpP X3QkfNOMz/DqMmxXiBIxOaultyhp/pbf27liREkl1Qg/ayQWebEMNk4Y4MjpSFCa 0I1Zg3khCcFs6wEKZ95oJ6o6MIVfN7/gn4/w0cAgRMgwlMr7p3ss+ucoeQWRAxYw 6Mjo6qlyM+caCHrIcMyAL7mRXw5RO7d8yIDuUc1IvzDuqPJ3qRExNUswr0Wuy3HM RSzPiHAeEnNwfJ689bdpQyaQFxKjt5E1+eWTF8ElC9yxYdsnb18o6A== =6h5q -----END PGP SIGNATURE----- _______________________________________________ enigmail-users mailing list [email protected] https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
