NumAttachments is 0 with an attached message?

Question:

We bought Chilkat Mail long time ago in order to programmatically extract attachments from EML files. It has been working great up until now when there was an email that has an EML attached to it. The NumAttachments property has a value of 0 but it should have a value of 1 and even if we force it to save all attachments, there was no file saved.

Answer:

Attachments that are buried in attached messages will not be seen by NumAttachments. You can check the NumAttachedMessages property to see if there are any message/rfc822 sub-parts, and if so, you can call GetAttachedMessage to return the message/rfc822 sub-part as an email object. You can then check to see if this email object has attachments.