HiraokaHyperTools / msgreader

40 stars 9 forks source link

{dataType: null, error: 'Unsupported file type!'} #33

Closed KrisKrebs closed 1 year ago

KrisKrebs commented 1 year ago

Hi there,

when parsing a simple Outlook Email (Ofice Pro Plus 2019) I am getting an error object stating: {dataType: null, error: 'Unsupported file type!'}

For example, this is a freshly generated Email, just showing "Text" in the subject and body line. This results in an error. However, if I try to parse real Emails from customers, including attachments and lots of correspondence, the parsing mostly works fine.

Hope anyone can help me out here. Thank you for your hard work. I really appreciate it.

header mail

kenjiuno commented 1 year ago

Hi.

{dataType: null, error: 'Unsupported file type!'}

This error will be issued, when the file signature doesn't match with pre defined one.

2022-12-02_10h28_57

If you don't mind, please send me a sample msg file to ku@digitaldolphins.jp for detail inspection? If you send it with Outlook, please archive msg file to zip.

kenjiuno commented 1 year ago

Hi. Sorry for late reply. I got your mail in spam folder.

Test.msg has no problem. It is readable.

Also, online demo could decode it. https://hiraokahypertools.github.io/msgreader_demo/

I suspect msgFileBuffer (MsgReader constructor parameter) didn't store correct msg content.

const msgFileBuffer = fs.readFileSync('./data/test.msg')
const testMsg = new MsgReader(msgFileBuffer)

For now I have no more information to guess about this issue.

If you have interested in that online demo, you can check the source code:

https://github.com/HiraokaHyperTools/msgreader_demo/blob/c8e01d56a44cf4196b85fb8135b97307aa43d56c/src/index.ts#L132

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

Keanottesen commented 1 week ago

I have the same issue also in the demo

image