mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
webmail: when opening message in new tab, set document title to subject, message from address(es) and id of message
This commit is contained in:
@ -5,6 +5,7 @@ declare let messageItem: api.MessageItem
|
||||
|
||||
const init = () => {
|
||||
const mi = api.parser.MessageItem(messageItem)
|
||||
document.title = '"' + mi.Envelope.Subject + '"- from '+((mi.Envelope.From || []).map(a => formatAddress(a)).join(', ') || '-') + ' (id '+mi.Message.ID+')'
|
||||
|
||||
let msgattachmentview = dom.div()
|
||||
if (mi.Attachments && mi.Attachments.length > 0) {
|
||||
|
Reference in New Issue
Block a user