Browse Source

Remove unused code and adjust tests.

master
Jörg Knobloch 1 year ago
parent
commit
86ec8f954d
6 changed files with 2 additions and 92 deletions
  1. +0
    -2
      addon/content/modules/handshake.js
  2. +0
    -56
      addon/content/modules/pEp.js
  3. +2
    -8
      tests/features/decrypt_feature_spec.js
  4. +0
    -8
      tests/features/encrypt_feature_spec.js
  5. +0
    -16
      tests/features/get_outgoing_message_rating_feature.js
  6. +0
    -2
      tests/unit/controller.js

+ 0
- 2
addon/content/modules/handshake.js View File

@ -3,8 +3,6 @@
class Handshake {
constructor(pEpController) {
this.controller = pEpController;
this.ownIdentity;
this.allIdentities;
}
async actionMistrustKey(identity) {


+ 0
- 56
addon/content/modules/pEp.js View File

@ -349,10 +349,6 @@ pEp.Message = class {
this.longmsg = long;
this.longmsg_formatted = formatted_long;
this.attachments = attachmentsArray;
this.rawmsg_ref = "";
this.rawmsg_size = "";
this.sent; // when the message is sent
this.recv; // when the message is received
if (pEp.Identity.prototype.isPrototypeOf(from)) {
this.from = from;
@ -360,8 +356,6 @@ pEp.Message = class {
this.from = new pEp.Identity(from);
}
this.recv_by;
if (pEp.Identity.prototype.isPrototypeOf(to[0])) {
this.to = to;
} else {
@ -371,15 +365,7 @@ pEp.Message = class {
}, []);
}
this.cc;
this.bcc;
this.reply_to;
this.in_reply_to = [];
this.refering_msg_ref;
this.references;
this.refered_by;
this.keywords;
this.comments;
this.opt_fields = optFieldsArray;
this.enc_format = enc_format;
}
@ -423,48 +409,6 @@ pEp.Message = class {
return addresses;
}, []);
}
// Unused code, slated for removal. addAttachment() was used in decryptMail().
// addAttachment(base64_value, size, filename = "", mimetype = "application/octet-stream") {
// const attachment = new pEp.Attachment(base64_value, size, filename, mimetype);
// this.attachments.push(attachment);
// }
// addOptField(key, value) {
// if (typeof key === "object") {
// this.opt_fields.push(key);
// } else {
// this.opt_fields.push({key, value});
// }
// }
commonHeaders() {
let opt = [];
// add extra headers
if ("opt_fields" in this) {
opt = this.opt_fields.map(({ key, value }) => [key, value]);
}
return [
["Message-ID", this.id || "No-message-ID"],
["Subject", this.shortmsg],
].concat(opt);
}
addressesHeaders() {
function getNameAddress(addr) {
return { name: addr.username, email: addr.address };
}
const opt = [];
if (this.from) opt.push(["From", [getNameAddress(this.from)]]);
if (this.to && this.to.length > 0) opt.push(["To", this.to.map(getNameAddress)]);
if (this.cc && this.cc.length > 0) opt.push(["CC", this.cc.map(getNameAddress)]);
if (this.bcc && this.bcc.length > 0) opt.push(["Bcc", this.bcc.map(getNameAddress)]);
if (this.reply_to && this.reply_to.length > 0) opt.push(["Reply-To", this.reply_to.map(getNameAddress)]);
if (this.in_reply_to && this.in_reply_to.length > 0) opt.push(["In-Reply-To", this.in_reply_to.map(getNameAddress)]);
if (this.references && this.references.length > 0) opt.push(["References", this.references.map(getNameAddress)]);
return opt;
}
};
// export common.js module to allow one js file for browser and node.js


+ 2
- 8
tests/features/decrypt_feature_spec.js View File

@ -246,8 +246,6 @@ describe("pEp Decrypt Feature", () => {
bcc: [],
dir: 1,
enc_format: 0,
rawmsg_ref: "",
rawmsg_size: "",
longmsg_formatted: undefined,
from: {
address: "cfg@pep.security",
@ -476,7 +474,7 @@ bnTIs4cqGeiRz/Dw
security_token: "0847cqi9WqqE5ZcVtA8_mDIgEmYMv14xlNAvSZW",
method: "cache_decrypt_message",
params: [{
dir: 0, id: "message-id", shortmsg: "pEp", longmsg: "-----BEGIN PGP MESSAGE-----\n\nhQEMA3nTjPcdpPimAQgAqBx2NpTRnr/f/8MfD2SjsJJm+gugpz7a8fsbXa/z6mPT\nGpor+okBSzAJs5moz8Q4c9qbkh3fT2huTRx409WDsQ5Vbh2TrMGC6no91WtdfuGF\nHLABAUCTwIAseyy/Ztm1Cv6Mp9wAmsu8xavMAx+f9UjA7tM6x+UcvUytCAbWBExl\nru6+Lu/rkC5JTIUuznse2cIkPbQltqG21qvsyhIyRJhKRTGtK8ffX7CXehoaTm99\nLv0t/uqcwMaK80o8eVikZKgMcMAj+c9QRNmmQL4D8Z9NartAR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4zwzS+V7GRW\n+maI+/OtZ27HV2l1bcqJAjEmHBK9u9SHzJf8HYBzPH50b9SZMQg0iAGmN/QUEUE+YGMa\ntjsAzuXbvCbxjqVS/WTeU/7uyNxmtePEEwEhozb9cZIin/28oFsPt7kf/O7ef8Sh\nZVioisG657Xhb1LM1mXixu9aLBmN5HWpTvys3FC5SzdLxeml3+lFDPLTu8UlIpGE\nVZF/nDFNaYGymfIARg3PNmWmOi+Tec0Z6JOotL0BjcVGJ52Oy4RkmDxMVt7nsnyo\nbnTIs4cqGeiRz/Dw\n=swzA\n-----END PGP MESSAGE-----", attachments: [], rawmsg_ref: "", rawmsg_size: "", from: { username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }, to: [{ username: "Chris", address: "cfg@pep.security", fingerprint: "B2775D7B919C9E28EC1B9B492C0E8DE595E4A594" }], in_reply_to: [], opt_fields: [], enc_format: 4, cc: [], bcc: [], reply_to: null,
dir: 0, id: "message-id", shortmsg: "pEp", longmsg: "-----BEGIN PGP MESSAGE-----\n\nhQEMA3nTjPcdpPimAQgAqBx2NpTRnr/f/8MfD2SjsJJm+gugpz7a8fsbXa/z6mPT\nGpor+okBSzAJs5moz8Q4c9qbkh3fT2huTRx409WDsQ5Vbh2TrMGC6no91WtdfuGF\nHLABAUCTwIAseyy/Ztm1Cv6Mp9wAmsu8xavMAx+f9UjA7tM6x+UcvUytCAbWBExl\nru6+Lu/rkC5JTIUuznse2cIkPbQltqG21qvsyhIyRJhKRTGtK8ffX7CXehoaTm99\nLv0t/uqcwMaK80o8eVikZKgMcMAj+c9QRNmmQL4D8Z9NartARtbKiekAhAOgHcwR\n4Ke9nntsqGzhsG56QHlq3vizZ+i24tN593IoTJKDGIUBjANh8FPqYcqzeQEL/jwO\nWAwQ7vIxdkOaH+uWOn1XKczGD6X7lsbnN9N0DaKSgIXw/S7wtwf4HjQ0Xau+LERO\nAvGtSFznN5s0k95rhFsBIgvS3O0dd1nXIASD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FC5SzdLxeml3+lFDPLTu8UlIpGE\nVZF/nDFNaYGymfIARg3PNmWmOi+Tec0Z6JOotL0BjcVGJ52Oy4RkmDxMVt7nsnyo\nbnTIs4cqGeiRz/Dw\n=swzA\n-----END PGP MESSAGE-----", attachments: [], from: { username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }, to: [{ username: "Chris", address: "cfg@pep.security", fingerprint: "B2775D7B919C9E28EC1B9B492C0E8DE595E4A594" }], in_reply_to: [], opt_fields: [], enc_format: 4, cc: [], bcc: [], reply_to: null,
}, ["OP"], [], ["OP"], 0],
id: 1,
jsonrpc: "2.0",
@ -494,8 +492,6 @@ bnTIs4cqGeiRz/Dw
in_reply_to: [],
dir: 1,
enc_format: 999,
rawmsg_ref: "",
rawmsg_size: "",
longmsg_formatted: undefined,
opt_fields: [
{
@ -647,7 +643,7 @@ p8v8e2ItzgJl8TDottycwBlcDxgn1TDE+mj8ell09GYY2Rm7
security_token: "0847cqi9WqqE5ZcVtA8_mDIgEmYMv14xlNAvSZW",
method: "cache_decrypt_message",
params: [{
dir: 0, id: "message-id", shortmsg: "pEp", longmsg: "-----BEGIN PGP MESSAGE-----\n\nhQEMAxdsKhKOfVuAAQgAgfN8E2lzJN0lPD+fAQss4E9PUvz00AF1am7F/dheLKCY\nuB4MKNctcRQD3tdeGzYJ820H5Zuc1Z/FZMU3Rt0OfxT+uXYN84DiN+p0BJSYmF49\nc2el7O4S4DLRarxgFzAL2sbBFQ5SufbKijGgOLtj1a7dIm9SsiGl5gK9c7CChD+e\nr935HEEvb58JPF1Ziw7ZQS+G2snJNpzUX2uWJmD4Py1t90yNtxOA1tajzbyUtxWm\n8yMF/maSB24nJrZNeNyn4b7pVfjiid6PYIQttoWI67D7HpFKH2HSJ77BM+5YkiY4\nzjFluNGSKJ2W3wxaQPLom35hWMbR93XxHAlOB1TdudLrAdk4xEKyLWO0/JlV7bYm\njJmO6rbZKgvdw8lRB2iXBUWV3z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rP6nfJrDujfxYAV6bNboS4PLo\np8v8e2ItzgJl8TDottycwBlcDxgn1TDE+mj8ell09GYY2Rm7\n=IMf6\n-----END PGP MESSAGE-----", attachments: [], rawmsg_ref: "", rawmsg_size: "", from: { username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }, to: [{ username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }], in_reply_to: [], opt_fields: [], enc_format: 4, cc: [], bcc: [], reply_to: null,
dir: 0, id: "message-id", shortmsg: "pEp", longmsg: "-----BEGIN PGP MESSAGE-----\n\nhQEMAxdsKhKOfVuAAQgAgfN8E2lzJN0lPD+fAQss4E9PUvz00AF1am7F/dheLKCY\nuB4MKNctcRQD3tdeGzYJ820H5Zuc1Z/FZMU3Rt0OfxT+uXYN84DiN+p0BJSYmF49\nc2el7O4S4DLRarxgFzAL2sbBFQ5SufbKijGgOLtj1a7dIm9SsiGl5gK9c7CChD+e\nr935HEEvb58JPF1Ziw7ZQS+G2snJNpzUX2uWJmD4Py1t90yNtxOA1tajzbyUtxWm\n8yMF/maSB24nJrZNeNyn4b7pVfjiid6PYIQttoWI67D7HpFKH2HSJ77BM+5YkiY4\nzjFluNGSKJ2W3wxaQPLom35hWMbR93XxHAlOB1TdudLrAdk4xEKyLWO0/JlV7bYm\njJmO6rbZKgvdw8lRB2iXBUWV3zdAhbBOdBoUFouEW1sRKs8xSsOLXIw6v7xEEr6X\nlL1fK1T9Q+lTM7VUMd1eDhHllMp/RPWalzOxw8+RKontp9XKA3ZyGF7kk6bQah5g\nE1btANiCXlUjGKY3czf/3ji670sU2/B6szIrBUhhXf/iA5g8/DMGtI2jYHeRj9Bp\nHnU7tHbisQejJW+10ET0ZIn1zyIyeFofQvrgHk8h9CVunV91a2The5QqulgYhbid\nvnVCCs91lj+yTohAJJIcULHvJo+MkXauC8cl89/suDEEJaagIoCHZ0g5MJhqPA7W\nayL4QoAr+P9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B5biE45LTRJcC8CaPWWVz3aPyZQIGJvxgsakxz0zxPyeLA/b3CkBC5oI+txN\nPq3AJXrvNZ43OPV3uxbIamsJNsG1VR2ILfJfMC2a/VpNQXp1/5WSjTuVdEpX0AsL\nTHCwgWc4B5vqWAewd4v0lNg3I5VtpMolsU4djpDHYkBHegNlFaGRSXzdjUkghPWa\nKmXZcpMaD3zz39ZbJvt4VN30Ez95Pph0JJu+IqLALbK6mLfrNO5i/9IihUD8wtTp\nCf8jkrOBo74loIXj1d9LXHbA0X66ka59XEAlMsTTCT0+xfRMS+bH1QRK9lqDxgd1\nJQj0njP4EtDQLL1tlLhYcjKkUGPrfiMBRsUT4W3H00jmhtnWwZN11qoS7GjZPKOe\nUgCsiyVIRdLg9gW172Ni3MwuCs3L0Eg5TpWZHYhTBAn3yiMYOIljS3H3fwuFIEGF\n6u9P/7ZOiQgz7B3JFrP74xRBt7s5LmXvwVZ8uWRCDyIS3Pa9207Mk9KUnt62Aesr\n4SkR0vkqI983ITad6OB5FAKhJ7ArLMnXqbZ5qTAJtUwaVKR4mUtsTWtLUNBuSHnQ\nGl1Yrg0e5ZqDkrBQubUEEHmuqX8n5cn58c4dzIcBzyirnOlw1+sOXj3rU/gq9H//\nJMpc6zCJJy4BwfEdqTTbrP8W86DSWMzyLGpxSGy4KrFaIdJo6Edzs1LkpKNUpf83\n8Uu789V5vVuflSnlQYnNcIhwNjeTPMMdo4HBTt9rP6nfJrDujfxYAV6bNboS4PLo\np8v8e2ItzgJl8TDottycwBlcDxgn1TDE+mj8ell09GYY2Rm7\n=IMf6\n-----END PGP MESSAGE-----", attachments: [], from: { username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }, to: [{ username: "fra", address: "fo@pep.security", fingerprint: "294F39B0CDEEEE333D85E0DDFC9965B6D24F366B" }], in_reply_to: [], opt_fields: [], enc_format: 4, cc: [], bcc: [], reply_to: null,
}, ["OP"], [], ["OP"], 0],
id: 1,
jsonrpc: "2.0",
@ -667,8 +663,6 @@ p8v8e2ItzgJl8TDottycwBlcDxgn1TDE+mj8ell09GYY2Rm7
in_reply_to: [],
dir: 1,
enc_format: 999,
rawmsg_ref: "",
rawmsg_size: "",
longmsg_formatted: undefined,
opt_fields: [
{


+ 0
- 8
tests/features/encrypt_feature_spec.js View File

@ -110,8 +110,6 @@ describe("pEp Encrypt Feature", () => {
longmsg: "Not Encrypted Message",
longmsg_formatted: "",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -214,8 +212,6 @@ describe("pEp Encrypt Feature", () => {
longmsg: "Not Encrypted Message",
longmsg_formatted: "",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -372,8 +368,6 @@ describe("pEp Encrypt Feature", () => {
longmsg: "Not Encrypted Message",
longmsg_formatted: "",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "fo@pep.security", fpr: "",
},
@ -514,8 +508,6 @@ describe("pEp Encrypt Feature", () => {
longmsg: "Not Encrypted Message",
longmsg_formatted: "",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},


+ 0
- 16
tests/features/get_outgoing_message_rating_feature.js View File

@ -37,8 +37,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -75,8 +73,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -113,8 +109,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -151,8 +145,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -189,8 +181,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -227,8 +217,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -265,8 +253,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},
@ -304,8 +290,6 @@ describe("pEp Get Outgoing Message Rating Feature", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},


+ 0
- 2
tests/unit/controller.js View File

@ -48,8 +48,6 @@ describe("controller calls", () => {
shortmsg: "test",
longmsg: "test",
attachments: [],
rawmsg_ref: "",
rawmsg_size: "",
from: {
user_id: "", username: "", address: "cfg@pep.security", fpr: "",
},


Loading…
Cancel
Save