-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 18.08.13 12:41, Max Maass wrote:
> On 08/18/2013 12:13 PM, Patrick Brunschwig wrote:
>> I'd say go ahead using X-Enigmail-Draft-Status and leave it up
>> to the user to decide for inline-PGP vs. PGP/MIME. And yes,
>> you'll need to set it to nsIEnigmail.SEND_ENCRYPTED. But looking
>> at the code, I think you also need to add functionality to
>> enable encrypted messages (see getMsgPropertiesCb).
>
> Okay, so I added the following to my send code:
>
> fields.otherRandomHeaders += "x-enigmail-draft-status: "+
> Components.interfaces.nsIEnigmail.SEND_ENCRYPTED +"\r\n";
>
> (Which is pretty much exactly what is done in setDraftStatus in
> enigmailMsgComposeOverlay.js)
>
> Then I modified enigmailMsgComposeOverlay.js@getMsgPropertiesCb to
> look like this (differences marked with "+", logging removed for
> brevity):
>
> const nsIEnigmail = Components.interfaces.nsIEnigmail; const SIGN
> = nsIEnigmail.SEND_SIGNED; + const ENCRYPT =
> nsIEnigmail.SEND_ENCRYPTED;
>
> var flags = 0; if (mimeMsg &&
> mimeMsg.headers["x-enigmail-draft-status"]) flags =
> Number(mimeMsg.headers["x-enigmail-draft-status"]);
>
> if (flags & SIGN) Enigmail.msg.setSendMode('sign'); + if (flags &
> ENCRYPT) Enigmail.msg.setSendMode('encrypt');
>
> If I try it like this, I am getting a new mail, unencrypted, with
> a second recipient "x-enigmail-draft-status: 2". Also, according to
> the logs, getMsgPropertiesCb is never called. So there seems to be
> at least one, probably two problems here.
>
> As I do not have enough experience with the Enigmail Source yet, I
> have no idea where even to begin to look for them. So I would be
> very grateful for an idea on what to do next. If we want to keep
> the ML out of this (I don't know if this is interesting or annoying
> for everyone else on [Enigmail]), we can take this to personal
> eMail as well, if you want.
I'll have to debug this myself. I'll get back to you directly.
- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEVAwUBUhDU0sk25cDiHiw+AQiJugf8DDIUK0xeQeh7x7fojOezXjGBBYEx1jV0
S2yhOIWGe6g4DKV/pFbpFWs7bgXfVhIkLph8Hvh5SZPues0Han29y/pvLTolPEPv
SP1i/7RdUeZWVM3sX4aq2bDnM+sFRmfVzq6V2JMg0l9c9Dfv4FBUa98+0yPyEz2E
fh6jVsg+uttnPhP/QVkpeAKal5IPxwkzW045TFjje61/bsZK+BFSOJZdm0YawM6L
og2ywU1j9NHC0DK1vvLBihjmtp6x17i7fbuQsBoqxWIfs1CGf5CUNKm1qqg8iXa9
RbS1pHfXwV4CcX8z5899CByCZGRtiY5lusSgDU1XM05hZqmIuKyGjQ==
=qaz2
-----END PGP SIGNATURE-----
_______________________________________________
enigmail-users mailing list
[email protected]
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net