nodemailer / mailparser

Decode mime formatted e-mails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add transportMessageHeaders

markb-trustifi opened this issue · comments

Please add new property with raw unparsed headers - transportMessageHeaders.
Right now, because the MailParser instance is not exported from the nodemailer library, the raw headers can be received only by updating the simple-parser.js code:

parser.on('headers', headers => {
        mail.headers = headers;
        mail.headerLines = parser.headerLines;
        mail.transportMessageHeaders = parser.splitter.node.headers.headers.toString();
});