I have Aspose.Total and am simply trying to count the number of attachments to a given email message that i pull from a file.
MapiMessage msg = MapiMessage.FromFile(MSG.Path);
count = msg.Attachments.Count;
This is very simple and it works for the most part. My problem occurs when I want to distinguish between an embedded object in an email and an actual attachment. I’m sure the argument can be made that they are the same, but I want to know if Aspose can distinguish between the two types and if so, how.
For Ole attachment type, the MapiAttachment.ObjectData != null. For example, excel, word, ppt, embedded files.
If the attachment does not have ObjectData. BUT it contain the properties PR_ATTACH_CONTENT_ID (0x3712001E) or PR_ATTACH_CONTENT_LOCATION (3713001E). It also maybe an embedded image or file.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.