diff --git a/dev/Model/Message.js b/dev/Model/Message.js
index a55b9cdb5..97d5b044f 100644
--- a/dev/Model/Message.js
+++ b/dev/Model/Message.js
@@ -335,18 +335,21 @@ export class MessageModel extends AbstractModel {
viewPopupMessage(print) {
const timeStampInUTC = this.dateTimeStampInUTC() || 0,
ccLine = this.cc.toString(),
+ bccLine = this.bcc.toString(),
m = 0 < timeStampInUTC ? new Date(timeStampInUTC * 1000) : null,
win = open(''),
- sdoc = win.document;
- let subject = encodeHtml(this.subject()),
+ sdoc = win.document,
+ subject = encodeHtml(this.subject()),
mode = this.isHtml() ? 'div' : 'pre',
- cc = ccLine ? `
${encodeHtml(i18n('GLOBAL/CC'))}: ${encodeHtml(ccLine)}
` : '',
+ to = `${encodeHtml(i18n('GLOBAL/TO'))}: ${encodeHtml(this.to)}
`
+ + (ccLine ? `${encodeHtml(i18n('GLOBAL/CC'))}: ${encodeHtml(ccLine)}
` : '')
+ + (bccLine ? `${encodeHtml(i18n('GLOBAL/BCC'))}: ${encodeHtml(bccLine)}
` : ''),
style = getComputedStyle(doc.querySelector('.messageView')),
prop = property => style.getPropertyValue(property);
sdoc.write(PreviewHTML
.replace('', ''+subject)
// eslint-disable-next-line max-len
- .replace('', `<${mode}>${this.bodyAsHTML()}${mode}>`)
+ .replace('', `${subject}
${encodeHtml(this.from)}
${to}<${mode}>${this.bodyAsHTML()}${mode}>`)
);
sdoc.close();