Browse Source

improvements to the message cloning function

1.1.101
francesco 3 years ago
parent
commit
cf6f72de0f
3 changed files with 5 additions and 10 deletions
  1. +3
    -2
      chrome/content/modules/pEp.js
  2. +0
    -6
      package-lock.json
  3. +2
    -2
      tests/unit/mimeEmitter.js

+ 3
- 2
chrome/content/modules/pEp.js View File

@ -240,8 +240,9 @@ class pEp {
source.enc_format,
deepCopy(source.attachments),
deepCopy(source.opt_fields));
clone.setCc(source.cc);
clone.setBcc(source.bcc);
source.cc && clone.setCc(source.cc);
source.bcc && clone.setBcc(source.bcc);
return clone;
}
}


+ 0
- 6
package-lock.json View File

@ -1141,12 +1141,6 @@
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
"dev": true
},
"ramda": {
"version": "0.26.1",
"resolved": "https://registry.npmjs.org/ramda/-/ramda-0.26.1.tgz",
"integrity": "sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==",
"dev": true
},
"read-pkg": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",


+ 2
- 2
tests/unit/mimeEmitter.js View File

@ -10,7 +10,7 @@ let jsmimeMock = {
}
}
};
let MimeEmitter = require('../../chrome/content/modules/mimeEmitter');
let MimeEmitter = require('../../chrome/content/modules/MimeEmitter');
let controller = require('../../chrome/content/modules/pEp');
let emitter = new MimeEmitter(jsmimeMock, require('atob'), 'boundary');
@ -24,7 +24,7 @@ let expectations = {
}
};
describe('the mail module', () => {
describe('the MIME emitter', () => {
describe('multipart encoding', () => {
it('emits MIME from raw data', () => {
let parts = [{


Loading…
Cancel
Save