>From 93ae4c9f49fedeead1b6dd80a31f325a6fba5d30 Mon Sep 17 00:00:00 2001
From: okdistribute <[email protected]>
Date: Fri, 22 Sep 2017 16:07:17 +0200
Subject: [PATCH] autocrypt: type should always come first and addr
should not
have quotes
---
package/tests/autocrypt-test.js | 4 ++--
ui/content/enigmailMsgComposeOverlay.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/tests/autocrypt-test.js
b/package/tests/autocrypt-test.js
index 2dea603..709348d 100644
--- a/package/tests/autocrypt-test.js
+++ b/package/tests/autocrypt-test.js
@@ -106,8 +106,8 @@ test(function prepareDb() {
// testing: extractMessageId
test(function processHeader() {
- const hdr0 = "[email protected]; type=1; keydata=" + pubkey1;
- const hdr1 = "[email protected]; type=1; keydata=" + pubkey2;
+ const hdr0 = "type=1; [email protected]; keydata=" + pubkey1;
+ const hdr1 = "type=1; [email protected]; keydata=" + pubkey2;
let d0 = new Date();
d0.setTime(Date.now() - 5 * 86400 * 1000); // 5 days ago
diff --git a/ui/content/enigmailMsgComposeOverlay.js
b/ui/content/enigmailMsgComposeOverlay.js
index dedbcba..bb72caa 100644
--- a/ui/content/enigmailMsgComposeOverlay.js
+++ b/ui/content/enigmailMsgComposeOverlay.js
@@ -4384,7 +4384,7 @@ Enigmail.msg = {
let k = key.getMinimalPubKey();
if (k.exitCode === 0) {
let keyData = k.keyData.replace(/(.{72})/g, " $1\r\n");
- this.setAdditionalHeader('Autocrypt', 'addr="' +
this.identity.email + '"; type=1; keydata=\r\n' + keyData);
+ this.setAdditionalHeader('Autocrypt', 'type=1; addr=' +
this.identity.email + '; keydata=\r\n' + keyData);
}
}
},
--
2.6.4
_______________________________________________
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