better drafts handling

This commit is contained in:
Andris Reinman 2018-01-23 13:51:18 +02:00
parent b4023c53ea
commit 4262c24bd7

View file

@ -935,7 +935,8 @@ module.exports = (db, server, messageHandler) => {
html: true,
text: true,
textFooter: true,
forwardTargets: true
forwardTargets: true,
meta: true
}
},
(err, messageData) => {
@ -1061,6 +1062,7 @@ module.exports = (db, server, messageHandler) => {
text: messageData.text,
forwardTargets: messageData.forwardTargets,
attachments: messageData.attachments || [],
meta: messageData.meta || {},
references: (parsedHeader.references || '')
.toString()
.split(/\s+/)