mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-15 02:18:00 +00:00
(fix) completed the required modifications for XSRF in the mail module
This commit is contained in:
@@ -662,4 +662,18 @@
|
||||
return message;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function saveMessage
|
||||
* @memberof Message.prototype
|
||||
* @desc Download the current message
|
||||
* @returns a promise of the HTTP operation
|
||||
*/
|
||||
Message.prototype.saveMessage = function() {
|
||||
var selectedUIDs;
|
||||
|
||||
selectedUIDs = [ this.uid ];
|
||||
|
||||
return this.$mailbox.constructor.$$resource.download(this.$mailbox.id, 'saveMessages', {uids: selectedUIDs});
|
||||
};
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user