I am using Microsoft Graph to fetch mail and I recently noticed when an email has a .eml
attachment, there are two cases:
If the sender attach that email through drugging emails to the composer, the attachment will be an item attachment type. <-- I can handle this case
If the sender attaches a
.eml
file through clicking "attach file", that attachment will be a type of file attachment. Up to this point, I think it is fine to be a file attachment. But when I try to fetch that attachment, the attachment content type isapplication/octet-stream
which is wrong. Shouldn't it bemessage/rfc822
? Withapplication/octet-stream
, I cannot create that attachment from our server.