Scenario: I simply open and re-save MSG file which contains 1 regular attachment (PR_ATTACH_METHOD is ATTACH_BY_VALUE) and 3 OLE attachments (ATTACH_OLE).
Issue: When I open re-saved message, Outlook shows 2 errors in the body: [Error : unloaded OLE objects or mail attachment] (screenshot attached).
Corrupted OLE attachments:
- Microsoft Equation 3.0
- Chart
I did not tested with other OLE objects (Excel spreadsheets…).
Sample code:
var mapi = MapiMessage.FromFile(“sample file name.msg”);
mapi.Save(“resaved.msg”);
Thanks,
Alex Shloma