gmail-api-parse-message icon indicating copy to clipboard operation
gmail-api-parse-message copied to clipboard

Attachment message/rfc822

Open Logan-Yao opened this issue 3 years ago • 1 comments

Hello,

It seems the parseMessage returns wrong result when a *.eml file (mimeType: message/rfc822) was attached. The attachment might be parsed as email too, and the result from *.eml overwrite the original result.

Is there any solution?

Thanks, Logan

Logan-Yao avatar Oct 19 '22 07:10 Logan-Yao

I've just encountered the same issue. For me, removing one of the parts from the gmail result object worked:

messageData.data.payload.parts.pop();

This works for this one email, but I'm not sure this is a particularly good workaround.

Liz-Lovelace avatar Dec 09 '22 18:12 Liz-Lovelace