mailparser icon indicating copy to clipboard operation
mailparser copied to clipboard

Outlook *.msg files

Open RayDeanTech opened this issue 4 years ago • 0 comments

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);
        });

image

RayDeanTech avatar Dec 10 '20 19:12 RayDeanTech