diff --git a/mail_forward/static/src/js/mail_forward.js b/mail_forward/static/src/js/mail_forward.js
index 1de4c124..b71f214a 100644
--- a/mail_forward/static/src/js/mail_forward.js
+++ b/mail_forward/static/src/js/mail_forward.js
@@ -31,15 +31,26 @@ openerp.mail_forward = function (instance) {
}
// Get necessary fields from the forwarded message
+ var header = [
+ "----------" + _t("Forwarded message") + "----------",
+ _t("From: ") + this.author_id[1],
+ _t("Date: ") + this.date,
+ ];
+ if (this.subject) {
+ header.push(_t("Subject: ") + this.subject);
+ }
+ if (this.email_to) {
+ header.push(_t("To: ") + this.email_to);
+ }
+ if (this.email_cc) {
+ header.push(_t("CC: ") + this.email_cc);
+ }
+ header = header.map(_.str.escapeHTML).join("
")
+
var context = {
default_attachment_ids: attachment_ids,
default_body:
- "
----------" +
- _t("Forwarded message") +
- "----------
" +
- _t("From:") + " " +
- _.str.escapeHTML(this.author_id[1]) + "
" +
- _t("Date:") + " " + this.date + "
" + header + "