mailparser icon indicating copy to clipboard operation
mailparser copied to clipboard

Add transportMessageHeaders

Open markb-trustifi opened this issue 1 year ago • 0 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();
});

markb-trustifi avatar Jan 04 '24 08:01 markb-trustifi