mailparser
mailparser copied to clipboard
Outlook *.msg files
Does this natively support Outlook *.msg files?
When I inspect a parsed *.msg file, I see things like attachments
, headers
, and text
, but I do not see to
and from
.
Furthermore, the text has some sort of encoding applied to it. And, there's like 625 header lines?
Am I doing something wrong? How do I encode/decode this?
simpleParser(fs.createReadStream(msg))
.then(parsed => {
console.log(parsed)
console.log(parsed.headers)
console.log(parsed.subject)
console.log(parsed.from)
})
.catch(err => {
console.log(err);
});