Skip to content

Commit

Permalink
fix(mail(js)): use message subject as filename of .eml
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Aug 23, 2021
1 parent 05ad7a8 commit 792d96b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/WebServerResources/js/Mailer/Message.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,10 @@
* @returns a promise of the HTTP operation
*/
Message.prototype.download = function() {
return Message.$$resource.download(this.$absolutePath(), 'export');
var options;

options = { filename: this.subject + '.eml' };
return Message.$$resource.download(this.$absolutePath(), 'export', undefined, options);
};

/**
Expand Down

0 comments on commit 792d96b

Please sign in to comment.