mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 22:48:28 +03:00
Must encrypt with the sender key
This commit is contained in:
parent
a34da5de0d
commit
44dfa53cde
7 changed files with 41 additions and 14 deletions
|
|
@ -201,7 +201,19 @@
|
|||
*/
|
||||
MessageModel.prototype.getRecipientsEmails = function ()
|
||||
{
|
||||
return _.compact(_.uniq(_.map(this.to.concat(this.cc), function (oItem) {
|
||||
return this.getEmails(['to', 'cc']);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Array} aProperties
|
||||
* @return {Array}
|
||||
*/
|
||||
MessageModel.prototype.getEmails = function (aProperties)
|
||||
{
|
||||
var self = this;
|
||||
return _.compact(_.uniq(_.map(_.reduce(aProperties, function (aCarry, sProperty) {
|
||||
return aCarry.concat(self[sProperty]);
|
||||
}, []), function (oItem) {
|
||||
return oItem ? oItem.email : '';
|
||||
})));
|
||||
};
|
||||
|
|
@ -1033,4 +1045,4 @@
|
|||
|
||||
module.exports = MessageModel;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue