mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-03 16:09:21 +00:00
feat(mail): Add 'View raw message' mail contextual option. This option open message in a popup without HTML mail CSS content modification.
This commit is contained in:
1 parent
9eb8039698
commit
6ac8525bfe
11 files changed
+107
-3
No files matched your search
@@ -792,7 +792,7 @@
|
||||
* @function $reload
|
||||
* @memberof Message.prototype
|
||||
* @desc Fetch the viewable message body along with other metadata such as the list of attachments.
|
||||
* @param {object} [options] - set {useCache: true} to use already fetched data
|
||||
* @param {object} [options] - set {useCache: true} to use already fetched data, {raw: true} to remove web mail alteration
|
||||
* @returns a promise of the HTTP operation
|
||||
*/
|
||||
Message.prototype.$reload = function (options) {
|
||||
@@ -813,7 +813,10 @@
|
||||
return this;
|
||||
}
|
||||
|
||||
futureMessageData = Message.$$resource.fetch(this.$absolutePath(options), 'view');
|
||||
if (options && options.raw)
|
||||
futureMessageData = Message.$$resource.fetch(this.$absolutePath(options), 'viewRaw');
|
||||
else
|
||||
futureMessageData = Message.$$resource.fetch(this.$absolutePath(options), 'view');
|
||||
|
||||
return this.$unwrap(futureMessageData);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user