mailparser icon indicating copy to clipboard operation
mailparser copied to clipboard

Attachments has fileName undefined after parsing attachment with simpleParser (contentType: 'message/rfc822')

Open Quesj opened this issue 1 year ago • 1 comments

I am trying to parse emails with a different set of attachments. One of the attachments are .msg/.eml files. Sometimes the simpleParser returns fileName: "undefined".

The MIME contents of the email before parsing are good. The only correlation I could find is that this (sometimes) happens when the attached email has contentType: 'message/rfc822'.

The file is not corrupted, only the fileName doesn't get properly parsed by simpleParser. As the company I am working for doesn't allow sharing sensitive information I can't provide the email it happens with. But I hope someone has the same issue or this might be a known bug?

Quesj avatar Jun 12 '24 08:06 Quesj

@Quesj did you find a way around it? Facing same issue

YogiHa avatar Jul 29 '24 05:07 YogiHa

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 06 '25 02:11 github-actions[bot]

This issue was closed because it has been stalled for 15 days with no activity.

github-actions[bot] avatar Nov 22 '25 02:11 github-actions[bot]